Rename Domain.polyhedral_hull() into Domain.aspolyhedron()
[linpy.git] / examples / diamond.py
index 148cdca..5d0de4e 100755 (executable)
@@ -5,5 +5,4 @@ from pypol import *
 x, y = symbols('x y')
 diam = Ge(y, x - 1) & Le(y, x + 1) & Ge(y, -x - 1) & Le(y, -x + 1)
 print('diamond:', diam)
-print('projected on x:', diam.drop_dims('y'))
-
+print('projected on x:', diam.project([y]))