1 from sympy
.core
import symbols
, I
5 p
= 3*x
**2*y
*z
**7+7*x
*y
*z
**2+4*x
+x
*y
**4
8 def timeit_expand_nothing_todo():
11 def bench_expand_32():
12 """(x+y+z+1)**32 -> 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)