Ask Your Question

Revision history [back]

When I open Sage and type

 sage: f = e^x
 sage: f

I get this output:

e^x

To get the Taylor series expansion of e^x at 0 to the order 5, do:

sage: f.taylor(x,0,5)
1/120*x^5 + 1/24*x^4 + 1/6*x^3 + 1/2*x^2 + x + 1

Is that what you wanted? Did you have more code before f=e^x; f which made it produce a different output?