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

Commit 686d0af

Browse files
author
Matthias Koeppe
committed
Polyhedron_base.product: Add doctest for alias 'cartesian_product'
1 parent c085d30 commit 686d0af

File tree

1 file changed

+5
-0
lines changed
  • src/sage/geometry/polyhedron

1 file changed

+5
-0
lines changed

src/sage/geometry/polyhedron/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4767,6 +4767,11 @@ def product(self, other):
47674767
sage: P1 * 2.0
47684768
A 1-dimensional polyhedron in RDF^1 defined as the convex hull of 2 vertices
47694769
4770+
An alias is :meth:`cartesian_product`::
4771+
4772+
sage: P1.cartesian_product(P2) == P1.product(P2)
4773+
True
4774+
47704775
TESTS:
47714776
47724777
Check that :trac:`15253` is fixed::

0 commit comments

Comments
 (0)