mtaylor - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


mtaylor

multivariate Taylor series expansion

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

mtaylor(f, v, options)

mtaylor(f, v, n, options)

mtaylor(f, v, n, w, options)

Parameters

f

-

algebraic expression

v

-

list or set of names or equations

n

-

(optional) non-negative integer

w

-

(optional) list of positive integers

options

-

(optional) literal keyword returnorder

Description

• 

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 Ox4,Ox3y,Ox2y2,Oxy3,Ox4. 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.

Examples

mtaylorexpx2+y2,x,y,8

1+x2+y2+12x4+x2y2+12y4+16x6+12y2x4+12y4x2+16y6

(1)

mtaylorsqrt1+x2+y2,x,y,8

1+12x2+12y218x414x2y218y4+116x6+316y2x4+316y4x2+116y6

(2)

mtaylorsinx2+y2,x,y,returnorder

x2+y2,6

(3)

mtaylorsinx2+y2,x,y,8

x2+y216x612y2x412y4x216y6

(4)

mtaylorsinx2+y2,x,y,8,2,1

y2+x216y6

(5)

mtaylorsinx2+y2,x=1,y,3

sin1+2cos1x12sin1cos1x12+cos1y2

(6)

mtaylorcosx2+y2,x=1,y=2,3

cos52sin5x14sin5y22cos5+sin5x128cos5y2x18cos5+sin5y22

(7)

evalf

9.305580560+1.917848549x+3.835697099y+0.3915999037x1.22.269297484y2.x1.1.310373209y2.2

(8)

mtaylorfx,y,x,y,3

f0,0+D1f0,0x+D2f0,0y+D1,1f0,0x22+D1,2f0,0xy+D2,2f0,0y22

(9)

See Also

coeftayl

poisson

series

taylor