You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But simplify() has a pitfall. It just applies all the major simplification operations in SymPy, and uses heuristics to determine the simplest result. But “simplest” is not a well-defined term.
To get specific simplifications, you can use other simplification methods that specialise for your use. In this case, factor returns a factorised numerator and denominator.
simplify(2*((2*x - 3*y**2)*(3*x - (3*x**2 - 2*y)/(2*x - 3*y**2)) + (3*x**2 - 2*y)*(3*y*(3*x**2 - 2*y)/(2*x - 3*y**2) - 1))/(2*x - 3*y**2)**2)
returns2*x*y*(27*x**3 - 54*x*y + 27*y**3 + 8)/(8*x**3 - 36*x**2*y**2 + 54*x*y**4 - 27*y**6)
.But
8*x**3 - 36*x**2*y**2 + 54*x*y**4 - 27*y**6
is(2*x - 3*y**2)**3
.The text was updated successfully, but these errors were encountered: