#12492: Polyhedron().radius() is nonsensical
------------------------+---------------------------------------------------
Reporter: kini | Owner: mhampton
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: geometry | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Keshav Kini
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by kini):
Running tests. The code block in the description now looks like this:
{{{
sage: sq=polytopes.n_cube(2)
sage: sq.vertices()
[[1, 1], [-1, 1], [1, -1], [-1, -1]]
sage: sq.radius()
sqrt(2)
sage: Polyhedron([[p0+1,p1] for p0,p1 in sq.vertices()]).radius()
sqrt(2)
sage: Polyhedron([[p0+10,p1] for p0,p1 in sq.vertices()]).radius()
sqrt(2)
}}}
And just to show that it can produce numbers other than `sqrt(2)`:
{{{
sage: Polyhedron([[p0*3+10,p1*3] for p0,p1 in sq.vertices()]).radius()
3*sqrt(2)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12492#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.