coeftayl
coefficient of (multivariate) expression
Calling Sequence
Parameters
Description
Examples
coeftayl(expr, eqn, k)
expr
-
arbitrary expression
eqn
equation of the form x=α where x is a name (univariate case) or list (multivariate case)
k
non-negative integer (univariate case) or a list of non-negative integers (multivariate case)
This function computes a coefficient in the (multivariate) Taylor series representation of expr without forming the series (it uses differentiation and substitution). Often, expr is a polynomial.
The one-variable and several-variable cases are distinguished by the types of the input parameters.
UNIVARIATE CASE: x is a name and k a non-negative integer.
In this case, the value returned is the coefficient of x−αk in the Taylor series expansion of expr about x=α. This is equivalent to executing coeff⁡taylor⁡expr,x=α,k+1,x−α,k but it is more efficient (because only a single term is computed).
MULTIVARIATE CASE: x is a nonempty list x1,…,xv of indeterminates appearing in expr and α is a list α1,…,αv specifying the point of expansion with respect to the given indeterminates; k is a list k1,…,kv of non-negative integers corresponding to elements in x and α.
In this case, the value returned is the coefficient of the term specified by the monomial
x1−α1k1⁢…⁢xv−αvkv
in the multivariate Taylor series expansion of expr about the point x=α. If k is the list of zeros then the value returned is the value resulting from substituting x=α into expr.
p≔2⁢x2+3⁢y3−5
p≔3⁢y3+2⁢x2−5
coeftayl⁡p,x=0,2
2
coeftayl⁡p,x=1,1
4
taylor⁡p,x=1
3⁢y3−3+4⁢x−1+2⁢x−12
q≔3⁢a⁢x+12+sin⁡a⁢x2⁢y−y2⁢x+x−a
coeftayl⁡q,x=−1,2
sin⁡a⁢y+3⁢a
coeftayl⁡q,x=−1,1
−2⁢sin⁡a⁢y−y2+1
taylor⁡q,x=−1
sin⁡a⁢y+y2−1−a+−2⁢sin⁡a⁢y−y2+1⁢x+1+sin⁡a⁢y+3⁢a⁢x+12
coeftayl⁡q,x,y=0,0,0,0
2⁢a
coeftayl⁡q,x,y=0,0,2,1
sin⁡a
mtaylor⁡q,x,y
2⁢a+6⁢a+1⁢x+3⁢a⁢x2+sin⁡a⁢x2⁢y−y2⁢x
coeftayl⁡q,x,y=0,1,1,1
−2
coeftayl⁡q,x,y=0,1,2,1
mtaylor⁡q,x=0,y=1
2⁢a+6⁢a⁢x+sin⁡a+3⁢a⁢x2−2⁢y−1⁢x+sin⁡a⁢x2⁢y−1−y−12⁢x
See Also
coeff
coeffs
mtaylor
taylor
Download Help Document