Main Content

taylortool

Taylor series calculator

Description

example

taylortoolinitiates 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 pointx = a. The default function, value of N, base point, and interval of computation fortaylortoolaref = 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 expressionf.

Examples

collapse all

打开一个GUI计算Taylor series expansion. By default, the GUI shows the Taylor series expansion of the functionf(x) = x*cos(x). The blue solid line shows the functionf(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 functioncos(x).

symsxtaylortool(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.

Version History

Introduced before R2006a

See Also

||

Topics