On Sep 4, 5:54 am, Cary Cherng <[email protected]> wrote: > I have a rational function P(x)/Q(x) with numerators and denominators > of very large degree. From the context I know that a certain > polynomial p(x) should divide the denominator. If I multiply the > numerator by p(x) giving p(x)*P(x)/Q(x) how do I get sage to cancel > p(x) with the factor in Q(x)? In other words, how do I get sage to > simplify when I work with rational functions. Everything I've tried > either doesn't work or just sits there forever.
¿which are the coefficients of the polynomials? If I recall correctly, for computing p(x)*P(x)/Q(x) will compute the gcd of p(x)*P(x) and Q(x). The problem is that, by default, sage uses the euclidean algorithm, which is terribly slow. There are some non- merged patched dealing with this issue. I would do as [email protected] suggest or try the patches. -- 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/sage-support URL: http://www.sagemath.org
