
multcoeffs - multiplies the coefficients of a polynomial

with a factor

Calling sequence:

multcoeffs(poly, expr_2)
multcoeffs(expr [ , indets ], expr_2)
indets  ---> [ expr_1 ...]

Parameter:
poly                    --  polynomial
expr, expr_1, expr_2    --  expressions

Overloading:

1

Summary:

multcoeffs(p,e) multiplies all coefficients of the polynomial p with the
expression e. The new polynomial is then returned.

The first argument of multcoeffs is allowed to be a polynomial or an expression
and optionally a listof indeterminates.  An expression is converted into a
polynomial in the specified indeterminates (see function poly). multcoeffs
returns FAIL if the expression cannot be converted into a polynomial. The
result is of the same type as the first argument, e.g. if the argument is

a polynomial then the result is a polynomial too. multcoeffs is a kernel
function.

>>  multcoeffs(3*x^3+x^2*y^2+2, a);

      a*3*x^3 + a*x^2*y^2 + a*2

>>  p := poly(x^3+2): multcoeffs(p, sin(y));

      poly(sin(y)*x^3 + 2*sin(y), [x])

See also:  coeff , lcoeff , nterms , nthcoeff , mapcoeffs , poly, tcoeff

