On Feb 2, 2008 11:07 PM, Mike Hansen <[EMAIL PROTECTED]> wrote: > > Hello, > > Here is an example of the underlying problem > > sage: a = -x/(2*x-4) > sage: e = lambda e: taylor(e,x,3,4) > sage: e(a) > -3/2 + x - 3 - (x - 3)^2 + (x - 3)^3 - (x - 3)^4 > sage: type(_) > <class 'sage.calculus.calculus.SymbolicArithmetic'> > sage: b = e(a)._maxima_(); b > x-(x-3)^4+(x-3)^3-(x-3)^2-9/2 > > What happens is that is able to construct a SymbolicArithmetic object > that has things like they should be. When it then reconstructs a > maxima object from that, maxima performs the simplification. > > See ticket #2025
Just an offtopic question: What is wrong on simplifying -3/2 + x -3 to x - 9/2 ? I mean, why would you like to carry numbers in the expressions, if they can be added together? To easily see the coefficients of each term in the taylor polynomial? Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---