Comment #6 on issue 2454 by [email protected]: Mul._eval_derivative should
use the quotient rule when possible
http://code.google.com/p/sympy/issues/detail?id=2454
Aaron, just using together gives a nicer result without using the quotient
rule:
>>> n,d=x-1,(2*x+2)**2
>>> (d*diff(n)-n*diff(d))/d**2
(-(x - 1)*(8*x + 8) + (2*x + 2)**2)/(2*x + 2)**4
>>> together((d*diff(n)-n*diff(d))/d**2)
(-x + 3)*(4*x + 4)/(16*(x + 1)**4)
>>> diff(n/d)
-4*(x - 1)/(2*x + 2)**3 + (2*x + 2)**(-2)
>>> together(diff(n/d))
(-x + 3)/(4*(x + 1)**3)
--
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.