File tree Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
1
2
from timeit import default_timer as clock
2
3
from sage .all import var
3
4
var ("x y z w" )
4
5
e = (x + y + z + w )** 15
5
6
f = e * (e + w )
6
- print f
7
+ print ( f )
7
8
t1 = clock ()
8
9
g = f .expand ()
9
10
t2 = clock ()
Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
1
2
import sys
2
3
sys .path .append (".." )
3
4
from timeit import default_timer as clock
4
5
from symengine import var
5
6
var ("x y z" )
6
7
f = (x ** y + y ** z + z ** x )** 100
7
- print f
8
+ print ( f )
8
9
t1 = clock ()
9
10
g = f .expand ()
10
11
t2 = clock ()
Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
1
2
from timeit import default_timer as clock
2
3
from sage .all import var
3
4
var ("x y z" )
4
5
f = (x ** y + y ** z + z ** x )** 100
5
- print f
6
+ print ( f )
6
7
t1 = clock ()
7
8
g = f .expand ()
8
9
t2 = clock ()
9
- print "Total time:" , t2 - t1 , "s"
10
+ print ( "Total time:" , t2 - t1 , "s" )
Original file line number Diff line number Diff line change 1
- print "import..."
1
+ from __future__ import print_function
2
+ print ("import..." )
2
3
from timeit import default_timer as clock
3
4
from sage .all import var
4
5
var ("x" )
5
6
e = 1
6
- print "constructing expression..."
7
+ print ( "constructing expression..." )
7
8
for i in range (1 , 351 ):
8
9
e *= (i + x )** 3
9
- print "running benchmark..."
10
+ print ( "running benchmark..." )
10
11
t1 = clock ()
11
12
f = e .expand ()
12
13
t2 = clock ()
Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
1
2
import sys
2
3
sys .path .append (".." )
3
4
from timeit import default_timer as clock
4
5
from symengine import var
5
6
var ("x y z" )
6
7
e = (x + y + z + 1 )** 15
7
8
f = e * (e + 1 )
8
- print f
9
+ print ( f )
9
10
t1 = clock ()
10
11
g = f .expand ()
11
12
t2 = clock ()
Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
1
2
from timeit import default_timer as clock
2
3
from sage .all import var
3
4
var ("x y z" )
4
5
e = (x + y + z + 1 )** 15
5
6
f = e * (e + 1 )
6
- print f
7
+ print ( f )
7
8
t1 = clock ()
8
9
g = f .expand ()
9
10
t2 = clock ()
10
- print "Total time:" , t2 - t1 , "s"
11
+ print ( "Total time:" , t2 - t1 , "s" )
Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
1
2
import sys
2
3
sys .path .append (".." )
3
4
from timeit import default_timer as clock
20
21
t2 = clock ()
21
22
print ("Total time:" , t2 - t1 , "s" )
22
23
23
- print "SymPy diff:"
24
+ print ( "SymPy diff:" )
24
25
t1 = clock ()
25
26
g = f .diff (sympy .Symbol ("sq5" ))
26
27
t2 = clock ()
You can’t perform that action at this time.
0 commit comments