Main Content

taylortool

Taylor series calculator

Description

example

taylortool initiates a GUI that computes the Taylor series expansion. The GUI that graphs a function against the Nth partial sum of its Taylor series about a base point x = a. The default function, value of N, base point, and interval of computation for taylortool are f = x*cos(x), N = 7, a = 0, and [-2*pi,2*pi], respectively.

example

taylortool(f) initiates the GUI that computes the Taylor series expansion of the given expression f.

Examples

collapse all

Open a GUI that computes the Taylor series expansion. By default, the GUI shows the Taylor series expansion of the function f(x) = x*cos(x). The blue solid line shows the function f(x) and the red dashed line shows its Taylor approximation.

taylortool

Figure Taylor Tool contains an axes object and other objects of type uipanel. The axes object with title Taylor Series Approximation contains 2 objects of type line.

Next, find the Taylor series expansion of the function cos(x).

syms x
taylortool(cos(x))

Figure Taylor Tool contains an axes object and other objects of type uipanel. The axes object with title Taylor Series Approximation contains 2 objects of type line.

Input Arguments

collapse all

Input to approximate, specified as a symbolic expression or function.

Introduced before R2006a