Comment #6 on issue 4002 by [email protected]: Factorizing rational
functions
http://code.google.com/p/sympy/issues/detail?id=4002
I think the factoring is done the other way round. So if you had something
like (z+a)*(z+b) making a factor(z) you got z**2+(a+b)*z+a*b, which is the
one shown in the numerator. At least this was the result in version 0.7.2,
and the one got if you have any kind of polynomial. This is not the case
for a division between to polynomials.
Said in other words:
(z+a)*(z+b)/(z+c)/(z+d) in 0.7.2 gave the result:
(z**2+(a+b)*z+a*b)/(z**2+(c+d)*z+c*d), at least is what I got with
different formulas.
But from your words, I understand that this was not the expected behavior.
So I have searched a workaround...
f = fraction((z+a)*(z+b)/(z+c)/(z+d))
f[0].expand().collect(z)/f[1].expand().collect(z)
It seems to work as desired.
Thanks for your help,
Jose M.
El 04/09/2013, a las 19:40, [email protected] escribi�:
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.