Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #26077: document and doctest constructing polyhedra over number …
…fields Currently, the only example given in Polyhedron docstring is {{{ When the input contains elements of a Number Field, they require an embedding:: sage: K = NumberField(x^2-2,'s') sage: s = K.0 sage: L = NumberField(x^3-2,'t') sage: t = L.0 sage: P = Polyhedron(vertices = [[0,s],[t,0]]) Traceback (most recent call last): ... ValueError: invalid base ring }}} This is clearly insufficient from online documentation point of view. One has to look either at the html/pdf [http://doc.sagemath.org/html/en/ reference/discrete_geometry/sage/geometry/polyhedron/constructor.html docs] ot at the header of the file `sage/geometry/polyhedron/constructor.py` for more examples with embeddings specified. URL: https://trac.sagemath.org/26077 Reported by: dimpase Ticket author(s): Dima Pasechnik Reviewer(s): Jean-Philippe Labbé
- Loading branch information