sage: exp=(2*x^3 - 3*x + 4)/(x - 9); sage: exp.factor() (2*x^3 - 3*x + 4)/(x - 9) sage: exp.simplify_full() (2*x^3 - 3*x + 4)/(x - 9) sage: exp.partial_fraction() 1435/(x - 9) + 2*x^2 + 18*x + 159 sage: exp.numerator().maxima_methods().divide(exp.denominator()) [2*x^2 + 18*x + 159, 1435]
There is also some better for the last division, search the help and try the tab completion. Robert On 25 čvn, 21:43, "S. Robert James" <[email protected]> wrote: > If I have a rational expression in x, say (2*x^3 - 3x + 4)/(x - 9), > what are the different forms Sage can display it in? I'd like to be > able to: > > * Simplify it as much as possible (eg take out common factors, > stipulating that there's no division by zero) > > * Factor it as much as possible > > But also, show it in this form: > > * Do the division out, with a remainder -- 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
