multivariate Taylor series expansion
mtaylor(f, v, options)
mtaylor(f, v, n, options)
mtaylor(f, v, n, w, options)
list or set of names or equations
(optional) non-negative integer
(optional) list of positive integers
(optional) literal keyword returnorder
The mtaylor function computes a truncated multivariate Taylor series expansion of the input expression f, with respect to the variables v, to order n, using the variable weights w.
The variables v can be a list or set of names or equations. If vi is an equation, then the left-hand side of vi is the variable, and the right-hand side is the point of expansion. If vi is a name, then vi=0 is assumed as the point of expansion.
If the third argument n is present then it specifies the ``truncation order'' of the series. The concept of ``truncation order'' used is ``total degree'' in the variables. If n is not present, the truncation order used is the value of the global variable Order, which is 6 by default.
If the fourth argument w is present it specifies the variable weights to be used (by default all 1). A weight of 2 will halve the order in the corresponding variable to which the series is computed.
If the optional keyword returnorder is specified, then an expression sequence of two elements will be returned. The first element is the multivariate Taylor series expansion, and the second element indicates the (weighted) order (i.e., the weighted total degree) of the error term(s) of the expansion. E.g., if v=x,y and the second return value is 4, then the error terms for the multivariate series are O⁡x4,O⁡x3⁢y,O⁡x2⁢y2,O⁡x⁢y3,O⁡x4. As in the univariate series case, the actual order of the error term(s) may differ from the requested order n.
Note: mtaylor restricts its domain to ``pure'' Taylor series, those series with non-negative powers in the variables.
Download Help Document
What kind of issue would you like to report? (Optional)