Opened 8 years ago

Last modified 4 years ago

#16045 closed defect

Polytope volume function engines produce different results — at Initial Version

Reported by: wishcow Owned by:
Priority: minor Milestone: sage-8.1
Component: geometry Keywords: polytope, volume, lrs_volume, days88
Cc: jakobkroeker, mkoeppe, vdelecroix, jipilab, mforets, moritz, slabbe Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

The lrs engine for polytope volume calculates volume respective to the dimension of the polytope, while the auto engine calculates volume respective to the dimension of the ambient space.

Example:

m3 = matrix(ZZ, [[0,0,0],[0,0,1]])
p = Polyhedron(m3)
p.volume(engine="lrs")
p.volume()

1.0
0

(Note: The lrs behavior actually has some benefits, since it allows calculation of volumes of facets without reducing the dimension of the ambient space.)

Change History (0)

Note: See TracTickets for help on using tickets.