]> CRI, Mines Paris - PSL - linpy.git/blobdiff - examples/diamond.py
Overloading for Domains.project_out(), to be improved
[linpy.git] / examples / diamond.py
index ad0942b422838dbfeec5d2f3d751327b258c7eb9..1681054c9607379645744dcb0ede75521dca1f2a 100755 (executable)
@@ -5,4 +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_out([y]))