Taylor series
approximates T = taylor(f,var)f with the Taylor series expansion of f up to the fifth order
at the point var = 0. If you do not specify
var, then taylor uses the default
variable determined by symvar(f,1).
uses additional options specified by one or more T = taylor(___,Name,Value)Name,Value
pair arguments. You can specify Name,Value after the input
arguments in any of the previous syntaxes.
If you use both the third argument a and
ExpansionPoint to specify the expansion point, the value
specified via ExpansionPoint prevails.
If var is a vector, then the expansion point
a must be a scalar or a vector of the same length as
var. If var is a vector and
a is a scalar, then a is expanded into
a vector of the same length as var with all elements equal
to a.
If the expansion point is infinity or negative infinity, then
taylor computes the Laurent series expansion, which is
a power series in 1/var.
You can use the sympref function to modify the
output order of symbolic polynomials.