cnonmet_flag SciMax Toolbox coefmatrix

SciMax Toolbox >> coeff

coeff

Maxima Function

Calling Sequence

coeff (expr, x, n)

Description

Returns the coefficient of x^n in expr. n may be omitted if it is 1. x may be an atom, or complete subexpression of expr e.g., sin(x), a[i+1], x + y, etc. (In the last case the expression (x + y) should occur in expr). Sometimes it may be necessary to expand or factor expr in order to make x^n explicit. This is not done automatically by coeff.

Examples:

(%i1) coeff (2*a*tan(x) + tan(x) + b = 5*tan(x) + 3, tan(x));
(%o1)                      2 a + 1 = 5
(%i2) coeff (y + x*%e^x + 1, x, 0);
(%o2)                         y + 1
cnonmet_flag SciMax Toolbox coefmatrix