taylor - Taylor series expansion
|
Calling Sequence
|
|
taylor(expression, x=a, n)
taylor(expression, x, n)
|
|
Parameters
|
|
expression
|
-
|
expression
|
x
|
-
|
name; independent variable
|
a
|
-
|
realcons; expansion point
|
n
|
-
|
(optional) non-negative integer; expansion order
|
|
|
|
|
Basic Information
|
|
•
|
This help page contains complete information about the taylor command. For basic information on the taylor command, see the taylor help page.
|
|
|
Description
|
|
•
|
The taylor command computes the order n Taylor series expansion of expression, with respect to the variable x, about the point a.
|
|
If you do not specify the expansion point, a, the Taylor expansion at 0 is returned. This is known as the Maclaurin expansion.
|
|
If you do not specify the optional argument n, the order of the Taylor expansion returned is the value of the Order environment variable.
|
•
|
The taylor command is a restriction of the more general series command. For a complete explanation of the parameters, see series.
|
•
|
If the result of the series command applied to the specified arguments is a Taylor series, then this result is returned; otherwise, an error is returned.
|
•
|
To convert a Taylor series to a polynomial, use the convert/polynom command. For more information, see the convert/polynom help page.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
If the expansion point is not specified, the Taylor expansion at 0 is returned.
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
>
|
|
| (8) |
>
|
|
| (9) |
By default, the Order environment variable is set to 6. If you do not specify the expansion order, this value is used as the expansion order.
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
|
|
Download Help Document
Was this information helpful?