@@ -6589,7 +6589,7 @@ def affine_hull(self, as_affine_map=False, orthogonal=False, orthonormal=False,
6589
6589
- ``as_affine_map`` (boolean, default = False) -- If ``False``, return
6590
6590
a polyhedron. If ``True``, return the affine transformation,
6591
6591
that sends the embedded polytope to a fulldimensional one.
6592
- It is given as a pair ``(A,b)``, where A is a linear transformation
6592
+ It is given as a pair ``(A, b)``, where A is a linear transformation
6593
6593
and ``b`` is a vector, and the affine transformation sends ``v`` to
6594
6594
``A(v)+b``.
6595
6595
@@ -6753,7 +6753,7 @@ def affine_hull(self, as_affine_map=False, orthogonal=False, orthonormal=False,
6753
6753
sage: Pentagon = polytopes.dodecahedron().faces(2)[0].as_polyhedron()
6754
6754
sage: Pnormal = Pentagon.affine_hull(orthonormal=True, extend=True)
6755
6755
sage: Pgonal = Pentagon.affine_hull(orthogonal=True)
6756
- sage: A,b = Pentagon.affine_hull(orthogonal = True, as_affine_map=True)
6756
+ sage: A, b = Pentagon.affine_hull(orthogonal= True, as_affine_map=True)
6757
6757
sage: Adet = (A.matrix().transpose()*A.matrix()).det()
6758
6758
sage: Pnormal.volume()
6759
6759
1.53406271079097?
@@ -6767,7 +6767,7 @@ def affine_hull(self, as_affine_map=False, orthogonal=False, orthonormal=False,
6767
6767
An other example with ``as_affine_map=True``::
6768
6768
6769
6769
sage: P = polytopes.permutahedron(4)
6770
- sage: A,b = P.affine_hull(orthonormal=True, as_affine_map=True, extend=True)
6770
+ sage: A, b = P.affine_hull(orthonormal=True, as_affine_map=True, extend=True)
6771
6771
sage: Q = P.affine_hull(orthonormal=True, extend=True)
6772
6772
sage: Q.center()
6773
6773
(0.7071067811865475?, 1.224744871391589?, 1.732050807568878?)
0 commit comments