5d0de4e9a515acbfe7ebd10b7ceb63d6cf37731a
[linpy.git] / examples / diamond.py
1 #!/usr/bin/env python3
2
3 from pypol import *
4
5 x, y = symbols('x y')
6 diam = Ge(y, x - 1) & Le(y, x + 1) & Ge(y, -x - 1) & Le(y, -x + 1)
7 print('diamond:', diam)
8 print('projected on x:', diam.project([y]))