Does anyone have a suggestion of how to best retrieve the Integer gcd
and factors from an Add instead of getting the Rational?
>>> terms_gcd(3*x+9*x**2/2) # I want 3*x*(3*x/2 + 1)
3*x*(3*x + 2)/2
>>> primitive(3*(3*x/2 + 1))
(3/2, 3*x + 2)
>>> gcd(3*x,9*x**2/2)
x
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.