Sharedsupport / 2014-10-30-105145-convex-hull-interact.sagewsOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
@interact def f(n=(20,(4..100)), clr=Color('#002aff'), spin=True): r = RDF.random_element show(Polyhedron([(r(),r(),r()) for i in range(n)]).plot(opacity=.7, color=clr),spin=spin)
Interact: please open in CoCalc
56bde3e2-4db9-4e88-9c4d-fa1e65818637is %md I found a bug -- http://trac.sagemath.org/ticket/17264

I found a bug -- http://trac.sagemath.org/ticket/17264

Polyhedron([(0.8370682893845995r, 0.2027977776670088r, 0.2547890063224252r)])
Error in lines 1-1 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 864, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "lazy_import.pyx", line 358, in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3000) File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 705, in wrapper return func(*args, **kwds) File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/geometry/polyhedron/constructor.py", line 446, in Polyhedron parent = Polyhedra(base_ring, ambient_dim, backend=backend) File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/geometry/polyhedron/parent.py", line 86, in Polyhedra return Polyhedra_field(base_ring.fraction_field(), ambient_dim) AttributeError: type object 'float' has no attribute 'fraction_field'
Polyhedron([(0.8370682893845995, 0.2027977776670088, 0.2547890063224252)])
A 0-dimensional polyhedron in (Real Field with 54 bits of precision)^3 defined as the convex hull of 1 vertex