| Symbolic Math Toolbox | ![]() |
Taylor Series
which is all the terms up to, but not including, order eight
in the Taylor series for
:
Technically, T is a Maclaurin series, since its basepoint is a = 0.
prints T in a format resembling typeset mathematics:
generate the first 12 nonzero terms of the Taylor series for g about x = 2.
Let's plot these functions together to see how well this Taylor approximation compares to the actual function g:
xd = 1:0.05:3; yd = subs(g,x,xd); ezplot(t, [1,3]); hold on; plot(xd, yd, 'r-.') title('Taylor approximation vs. actual function'); legend('Taylor','Function')
Special thanks to Professor Gunnar Bäckstrøm of UMEA in Sweden for this example.
| Symbolic Summation | Extended Calculus Example | ![]() |