Symbolic Math Toolbox    

Taylor Series

The statements

return

which is all the terms up to, but not including, order eight in the Taylor series for f(x):

Technically, T is a Maclaurin series, since its basepoint is a = 0.

The command

prints T in a format resembling typeset mathematics:

These commands

generate the first 12 nonzero terms of the Taylor series for g about x = 2.

Next, plot these functions together to see how well this Taylor approximation compares to the actual function g:

Special thanks to Professor Gunnar Bäckstrøm of UMEA in Sweden for this example.


  Symbolic Summation Calculus Example 

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS