projects
/
linpy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add missing classmethod decorator
[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_out
([
y
]))