Documentation Center    • Trial Software   • Product Updates
Compute a Taylor series expansion  Use only in the MuPAD
Notebook Interface.  This functionality does not run in MATLAB.
taylor(f, x, <order>, <mode>, <NoWarning>) taylor(f, x = x0,
<order>, <mode>, <NoWarning>) taylor(f, x, <AbsoluteOrder =
order>, <NoWarning>) taylor(f, x = x0, <AbsoluteOrder = order>,
<NoWarning>) taylor(f, x, <RelativeOrder = order>, <NoWarning>)
taylor(f, x = x0, <RelativeOrder = order>, <NoWarning>)
taylor(f, x = x0) computes the first terms of the Taylor series
of f with respect to the variable x around the point x0.  Three
cases can occur:    1. taylor is able to compute the
corresponding Taylor series. In this case, the result is a
series expansion of domain type Series::Puiseux. Use expr to
convert it to an arithmetical expression of domain type
DOM_EXPR. Cf. Example 1.    2. taylor is able to decide that the
corresponding Taylor series does not exist. In this case, an
error is raised. Cf. Example 2.    3. taylor is