Ask Your Question
2

frozenset error when plotting polytopes: bug?

asked 11 years ago

mf gravatar image

updated 8 years ago

FrédéricC gravatar image

I am having trouble understanding an error I get, when i try the following:

ngon=polytopes.regular_polygon(122).dilation(18.1)
ngon.plot()

It says: KeyError: (frozenset([60]), frozenset([60])) The following works:

ngon=polytopes.regular_polygon(122).dilation(17.9)
ngon.plot()

What is going on? Is this a bug?

Preview: (hide)

Comments

i can reproduce this. If it helps you for the moment ngon=polytopes.regular_polygon(122).dilation(181/10) works.

marv gravatar imagemarv ( 11 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

Volker Braun gravatar image

Its basically this bug: http://trac.sagemath.org/ticket/10046

We don't have an arbitrary precision polytopes, so sooner or later numerical errors in floating point numbers will give you the wrong answer.

Preview: (hide)
link
0

answered 7 years ago

Akababa gravatar image

I noticed that if you use Polyhedron(ngon.vertices_list()).plot() instead, it usually works.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 607 times

Last updated: Jul 07 '17