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
8b9db24e00adea55ccbc2b7f1532009592d541c3
1
from
sympy
import
*
2
3
x
=
Symbol
(
"x"
)
4
y
=
Symbol
(
"y"
)
5
z
=
Symbol
(
"z"
)
6
a
=
Symbol
(
"x"
)
7
8
#print Add((x, y, z))
9
10
#e = Integer(1) + Integer(2)
11
#print e
12
13
print
hash
(
x
*
y
) ==
hash
(
y
*
x
)
14
print
(
x
*
y
) == (
y
*
x
)
15
print
(
x
*
y
).
args
16
print
(
y
*
x
).
args
17
e
=
x
*
y
-
y
*
x
18
print
e