projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove Vector.__slots__, useless
[linpy.git]
/
examples
/
diamond.py
diff --git
a/examples/diamond.py
b/examples/diamond.py
index
1681054
..
5d0de4e
100755
(executable)
--- a/
examples/diamond.py
+++ b/
examples/diamond.py
@@
-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)
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.project
_out
([y]))
+print('projected on x:', diam.project([y]))