The problem is that lrs is currently optional (there really isn't any reason it shouldn't be standard though) and I wanted to indicate that dependency somehow. But I agree, it should be renamed once lrs is standard.
It might also be possible to use qhull for this, which would probably be faster. The recent version of scipy which should be in sage-4.7 has a nice shared library version of qhull. For an exact result, another possibility would be to use the PointConfiguration class, triangulate the polyhedron, and then add up the volumes of the simplices. -Marshall On Mar 27, 7:32 am, Alastair Irving <[email protected]> wrote: > On 27/03/2011 02:32, Marshall Hampton wrote:> If p is your Polyhedron, you > can use p.lrs_volume() to get the volume, > > but this requires the optional lrs package to be installed. It should > > be very easy to install lrs, just do "sage -i lrs" (or "path/to/sage/ > > sage -i lrs" if sage is not in your path). I have been hoping to make > > lrs a standard package for a long time - if you have any problems > > installing it please post them. > > Thank you, that works fine. Shouldn't the function just be called > p.volume? Surely the user shouldn't need to know that lrs is being used? > > Alastair -- 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-support URL: http://www.sagemath.org
