[sage-support] Re: Conversion to/from polynomial?

2008-12-02 Thread David Joyner
Yes, sage: R. = PolynomialRing(QQ,"x") sage: a = 3*x^3+x^2+x+5 sage: b = 5*x^2-3*x +1 sage: c = a/b sage: c.partial_fraction_decomposition() --- TypeError Traceback (most recent call last) ...

[sage-support] Re: Conversion to/from polynomial?

2008-12-02 Thread Tim Lahey
Hmmm, This works: R. = PolynomialRing(QQ,"x") a = x^2 +3*x b = x^3 - x^2 - x+1 c = a/b c.partial_fraction_decomposition() (0, [-1/2/(x + 1), (3/2*x + 1/2)/(x^2 - 2*x + 1)]) So, it likely has to do with the specific a and b since in the original, a/b works (with a remainder). Note that this i