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
small refactoring
[sympyx.git]
/
q.py
blob
9c3d68e86986ad57cfd553718ad9282738dd875c
1
from
timeit
import
default_timer
as
clock
2
from
csympy
import
HashTable
3
from
sympy
import
*
4
5
x
=
Symbol
(
"x"
)
6
y
=
Symbol
(
"y"
)
7
z
=
Symbol
(
"z"
)
8
a
=
Symbol
(
"x"
)
9
10
e
= (
1
+
y
+
x
+
z
)**
8
11
12
#f = e*(e+1)
13
f
=
e
14
15
print
f
16
t
=
clock
()
17
g
=
f
.
expand
()
18
t
=
clock
() -
t
19
print
len
(
g
.
args
)
20
print
t