projects
/
linpy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ad0942b422838dbfeec5d2f3d751327b258c7eb9
[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
.
drop_dims
(
'y'
))