Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
abs tol marker added
Browse files Browse the repository at this point in the history
  • Loading branch information
mo271 committed Jul 17, 2017
1 parent b7b10da commit fa46cee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4337,7 +4337,7 @@ def volume(self, measure='ambient', engine='auto', **kwds):
sage: polytopes.icosahedron().volume()
5/12*sqrt5 + 5/4
sage: numerical_approx(_)
sage: numerical_approx(_) # abs tol 1e9
2.18169499062491
When considering lower-dimensional polytopes, we can ask for the
Expand Down Expand Up @@ -4372,9 +4372,9 @@ def volume(self, measure='ambient', engine='auto', **kwds):
-80*(55*sqrt(5) - 123)/sqrt(-6368*sqrt(5) + 14240)
sage: v = Dexact.faces(2)[4].as_polyhedron().volume(measure='induced', engine='internal'); v
-80*(55*sqrt(5) - 123)/sqrt(-6368*sqrt(5) + 14240)
sage: RDF(v)
sage: RDF(v) # abs tol 1e9
1.53406271079044
sage: w = Dinexact.faces(2)[0].as_polyhedron().volume(measure='induced', engine='internal'); RDF(w)
sage: w = Dinexact.faces(2)[0].as_polyhedron().volume(measure='induced', engine='internal'); RDF(w) # abs tol 1e-9
1.534062710738235
sage: [polytopes.simplex(d).volume(measure='induced') for d in range(1,5)] == [sqrt(d+1)/factorial(d) for d in range(1,5)]
Expand Down

0 comments on commit fa46cee

Please sign in to comment.