repo.or.cz
/
sympyx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ok
[sympyx.git]
/
q.py
blob
93e66ac9b6bca7e1e28e6a02547c28376b5e7b18
1
from
csympy
import
HashTable
2
from
sympy
import
*
3
4
x
=
Symbol
(
"x"
)
5
y
=
Symbol
(
"y"
)
6
z
=
Symbol
(
"z"
)
7
a
=
Symbol
(
"x"
)
8
9
e
= (
1
+
y
+
x
+
z
)**
2
10
11
f
=
e
*(
e
+
1
)
12
13
print
f
14
g
=
f
.
expand
()
15
print
g