simplify
と:flat
評価さ3 * x * y * z
れると予想され(* 3 x y z)
ます。代わりに、結果は(* 3 (* x y z))
です。なんで?
例
w = Int('w')
x = Int('x')
y = Int('y')
z = Int('z')
print simplify(w * x * y * z, flat=True).num_args() # 4, which we expected
print simplify(3 * x * y * z, flat=True).num_args() # 2, why not 4?