#14744: Coercion problem for polyhedra
-------------------------+--------------------------------------------------
Reporter: robharron | Owner: mhampton
Type: defect | Status: new
Priority: major | Milestone: sage-5.11
Component: geometry | Keywords: coercion, polyhedron
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-------------------------+--------------------------------------------------
I ran into the following problem of coercing a polyhedron over QQ to one
over RDF:
{{{
sage: verts = Sequence([(1.732050808, 2.449489743, 4.242640687),
....: (1.732050808, -1.224744871, 2.121320344),
....: (1.732050808, -1.224744871, -2.121320344),
....: (1.732050808, 2.449489743, 0.0),
....: (-1.732050808, -2.449489743, -4.242640687),
....: (-1.732050808, 1.224744871, -2.121320344),
....: (-1.732050808, -2.449489743, 0.0),
....: (-1.732050808, 1.224744871, 2.121320344)], universe=RDF^3)
sage: P_RDF = Polyhedron(vertices=verts)
sage: Space_RDF = P_RDF.parent()
sage: verts = Sequence([(1732051/1000000, 0, -400000393291/282842800000),
....: (1732051/1000000, 666666505233/544331000000,
-136082967219796951/192450130208500000),
....: (1732051/1000000, 666666505233/544331000000,
136082967219796951/192450130208500000),
....: (1732051/1000000, -666666505233/544331000000,
-136082967219796951/192450130208500000),
....: (1732051/1000000, -666666505233/544331000000,
136082967219796951/192450130208500000),
....: (1732051/1000000, 0, 400000393291/282842800000),
....: (577351/1000000, -888888520233/544331000000,
-136082859839816063/96225065104250000),
....: (577351/1000000, -6666671997/16329940000,
-600000322261/282842800000),
....: (577351/1000000, -6666671997/16329940000,
600000322261/282842800000),
....: (577351/1000000, -888888520233/544331000000,
136082859839816063/96225065104250000),
....: (577351/1000000, 1111110920133/544331000000,
146640983940592/207381605828125),
....: (-1732051/1000000, -666666505233/544331000000,
136082967219796951/192450130208500000),
....: (-577351/1000000, -1111110920133/544331000000,
146640983940592/207381605828125),
....: (-577351/1000000, -1111110920133/544331000000,
-146640983940592/207381605828125),
....: (-1732051/1000000, -666666505233/544331000000,
-136082967219796951/192450130208500000),
....: (-577351/1000000, 888888520233/544331000000,
136082859839816063/96225065104250000),
....: (-577351/1000000, 6666671997/16329940000,
600000322261/282842800000),
....: (577351/1000000, 1111110920133/544331000000,
-146640983940592/207381605828125),
....: (-1732051/1000000, 666666505233/544331000000,
136082967219796951/192450130208500000),
....: (-1732051/1000000, 0, 400000393291/282842800000),
....: (-1732051/1000000, 666666505233/544331000000,
-136082967219796951/192450130208500000),
....: (-577351/1000000, 888888520233/544331000000,
-136082859839816063/96225065104250000),
....: (-577351/1000000, 6666671997/16329940000,
-600000322261/282842800000),
....: (-1732051/1000000, 0, -400000393291/282842800000)], universe=QQ^3)
sage: P_QQ = Polyhedron(verts)
sage: P_RDF_QQ = Space_RDF(P_QQ)
sage: P_RDF_QQ.Hrepresentation()
AttributeError: 'Polyhedra_RDF_cdd_with_category.element_class' object has
no attribute '_Hrepresentation'
sage: P_RDF_QQ.Vrepresentation()
AttributeError: 'Polyhedra_RDF_cdd_with_category.element_class' object has
no attribute '_Vrepresentation'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14744>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.