MTM
taylor
Taylor series expansion
Calling Sequence
Parameters
Description
Examples
taylor(f,n,v,a)
f
-
expression
n
(optional) positive integer
v
(optional) symbol
a
(optional) real constant
The function taylor(f,n,v,a) interprets the expression f as a function of v, and returns the (n-1)-degree Taylor series expansion of f(v) about the point a.
If n is not specified, then n = 6.
If v is not specified, then v is the default symbol of f, given by findsym(f,1).
If a is not specified, then a = 0.
The optional parameters need not be passed in the order, n,v,a. More precisely, the arguments are assigned to n, v, and a in the following way:
. The first positive integer optional argument is assigned to n.
. The first non-numeric optional argument is assigned to v.
. The first real numeric optional argument is assigned to a, unless the argument is also a positive integer and n has not yet been assigned a value.
with⁡MTM:
taylor⁡exp⁡x
1+x+12⁢x2+16⁢x3+124⁢x4+1120⁢x5
taylor⁡exp⁡x,7
1+x+12⁢x2+16⁢x3+124⁢x4+1120⁢x5+1720⁢x6
taylor⁡exp⁡x,1.0
2.718281828⁢x+1.359140914⁢x−1.02+0.4530469713⁢x−1.03+0.1132617428⁢x−1.04+0.02265234857⁢x−1.05
taylor⁡1v⁢exp⁡x,v,6,1
ⅇx−ⅇx⁢v−1+ⅇx⁢v−12−ⅇx⁢v−13+ⅇx⁢v−14−ⅇx⁢v−15
taylor⁡exp⁡x,7,6
ⅇ6+ⅇ6⁢x−6+ⅇ6⁢x−622+ⅇ6⁢x−636+ⅇ6⁢x−6424+ⅇ6⁢x−65120+ⅇ6⁢x−66720
See Also
MTM[exp]
MTM[findsym]
Download Help Document