OK, I think I have fixed this. A patch is up at http://trac.sagemath.org/sage_trac/ticket/4060 awaiting review.
I am cross-posting this to sage-devel to hopefully attract a reviewer. In the meantime you could patch your own source if you'd like. If you aren't comfortable doing that, you could grab www.d.umn.edu/~mhampton/polyhedra.py and copy it into your sage directory at $SAGE_ROOT/devel/sage-main/sage/geometry/polyhedra.py, and then rebuild with sage -b. Marshall Hampton On Sep 4, 8:43 am, dghersi <[EMAIL PROTECTED]> wrote: > Thank you very much! > > Dario > > On Sep 4, 9:42 am, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > > OK, this is now trac ticket #4060. I will fix it as soon as I can, > > probably so a fix can be in whatever comes after sage-3.1.2. > > > M. Hampton > > > On Sep 3, 8:58 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > > > No, this is my fault for being lazy. I only work with exact > > > coordinates, so I did not extensively test with floats. I will try to > > > fix this soon. > > > > -M. Hampton > > > > On Sep 3, 10:46 am, dghersi <[EMAIL PROTECTED]> wrote: > > > > > Dear All, > > > > > I have a question related to the polyhedra module. > > > > When I define a polyhedron using float rather than integer > > > > coordinates, I get a weird behavior from the vert_to_ieq function. > > > > For example, if I type something like this: > > > > > p = [[1.1, 2.2], [3.3, 4.4]] > > > > vert_to_ieq(p, cdd_type="real") > > > > > I get an object that contains just one vertex, namely [0, 0, 0] > > > > On the other hand, if I use integer coordinates everything is fine. > > > > Am I doing something wrong? > > > > > (I am running sage version 3.1.1 on a Mac Pro (Intel) using the > > > > precompiled binary.) > > > > > Thank you very much, > > > > > Dario --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---