Ask Your Question

frozenset error when plotting polytopes: bug?

asked 2014-02-02 07:57:31 +0200

mf gravatar image

updated 2017-01-08 12:17:49 +0200

FrédéricC gravatar image

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


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


What is going on? Is this a bug?

edit retag flag offensive close merge delete


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

marv gravatar imagemarv ( 2014-02-02 09:07:53 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-02-03 16:56:03 +0200

Volker Braun gravatar image

Its basically this bug:

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

edit flag offensive delete link more

answered 2017-07-07 15:40:01 +0200

Akababa gravatar image

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

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2014-02-02 07:57:31 +0200

Seen: 518 times

Last updated: Jul 07 '17