Status: New Owner: [email protected] Labels: Type-Defect Priority-Medium Simplify
New issue 1303 by [email protected]: Simplify not cancelling fractions correctly http://code.google.com/p/sympy/issues/detail?id=1303 >>> var('zr zc') (zr, zc) >>> zup = zr >>> zlow = 1/(1/zc + 1/(zc+zr)) >>> zc/(zc+zr) * zlow/(zlow+zup) zc/((zc + zr)*(1/zc + 1/(zc + zr))*(zr + 1/(1/zc + 1/(zc + zr)))) >>> simplify(_) 2*zc**2/(6*zc*zr + 2*zc**2 + 2*zr**2) Notice how it is possible to cancel both the numerator and the denominator by 2. Therefore for some reason sympy is not completely simplifying the expression. The expected result is: zc**2/(3*zc*zr + zc**2 + zr**2) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---
