Initial SymPy benchmark suite
[sympy.git] / sympy / core / benchmarks / bench_expand.py
blob273231e9002c21a73baaf6837a920c5c1c105b27
1 from sympy.core import symbols, I
3 x,y,z = symbols('xyz')
5 p = 3*x**2*y*z**7+7*x*y*z**2+4*x+x*y**4
6 e = (x+y+z+1)**32
8 def timeit_expand_nothing_todo():
9 p.expand()
11 def bench_expand_32():
12 """(x+y+z+1)**32 -> expand"""
13 e.expand()
15 def timeit_expand_complex_number_1():
16 ((2+3*I)**1000).expand(complex=True)
18 def timeit_expand_complex_number_2():
19 ((2+3*I/4)**1000).expand(complex=True)