coeffs - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Polynomials : Extracting Parts : coeffs

coeffs

extract all coefficients of a multivariate polynomial

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

coeffs(p, x, 't')

Parameters

p

-

multivariate polynomial

x

-

(optional) indeterminate or list/set of indeterminates

t

-

(optional) an unevaluated name

Description

• 

The coeffs function returns an expression sequence of all the coefficients of the polynomial p with respect to the indeterminate(s) x.

• 

If x is not specified, coeffs computes the coefficients with respect to all the indeterminates of p (see the indets function).  If a third argument t is specified (call by name), it is assigned an expression sequence of the terms of p.  There is a one-to-one correspondence between the coefficients and the terms of p.

• 

Note that p must be collected (collect) with respect to the appropriate indeterminates.  For multivariate polynomials, you may need to use collect with `distributed`.

Thread Safety

• 

The coeffs command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

s3v2y2+2vy3

s:=3v2y2+2vy3

(1)

coeffss

3,2

(2)

coeffss,v,'t'

3y2,2y3

(3)

t

v2,v

(4)

r6x+3y+23x24xyz+7z2

r:=4xyz+23x2+7z26x+3y

(5)

coeffsr

4,23,7,6,3

(6)

coeffsr,x,'k'

23,4yz6,7z2+3y

(7)

k

x2,x,1

(8)

ucoeffsx2y21,x,y,'l'

u:=1,1,1

(9)

l3,u3

1,1

(10)

For multivariate polynomials, you may need to use collect with `distributed`.

pc+ax2+d+bxy+ey+f:

coeffsp,x,y

Error, invalid arguments to coeffs

coeffscollectp,x,y,'distributed',x,y

f,d+e,b,c+a

(11)

See Also

coeff

collect

indets

lcoeff

PolynomialTools[CoefficientVector]

tcoeff

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam