projects
/
linpy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
148cdca3ce546dc28db06b4dfd1ab30bb80a26fc
[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'
))
9