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

Commit

Permalink
src/sage/geometry/polyhedron/base.py: Mark more doctests # optional -…
Browse files Browse the repository at this point in the history
… sage.rings.number_field
  • Loading branch information
Matthias Koeppe committed Oct 8, 2021
1 parent 607598a commit b84efa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3635,8 +3635,8 @@ def is_compact(self):
EXAMPLES::
sage: p = polytopes.icosahedron()
sage: p.is_compact()
sage: p = polytopes.icosahedron() # optional - sage.rings.number_field
sage: p.is_compact() # optional - sage.rings.number_field
True
sage: p = Polyhedron(ieqs = [[0,1,0,0],[0,0,1,0],[0,0,0,1],[1,-1,0,0]])
sage: p.is_compact()
Expand Down Expand Up @@ -8928,8 +8928,8 @@ def integrate(self, function, measure='ambient', **kwds):
Testing a polytope with non-rational vertices::
sage: P = polytopes.icosahedron()
sage: P.integrate(x^2*y^2*z^2) # optional - latte_int
sage: P = polytopes.icosahedron() # optional - sage.rings.number_field
sage: P.integrate(x^2*y^2*z^2) # optional - latte_int # optional - sage.rings.number_field
Traceback (most recent call last):
...
TypeError: the base ring must be ZZ, QQ, or RDF
Expand Down

0 comments on commit b84efa5

Please sign in to comment.