Contents Previous Next Subchapters

Polynomial Multiplication
Syntax polmul(pq)
See Also conv , pol2asc , polcomp , polval

Returns a column vector containing the product of p and q as polynomials , where both p and q are real, double-precision, or complex column vectors. The return value has the same type as a binary operation between p and q. (See the coercion entry in the O-Matrix User's Guide.)

This function computes the result directly using the intrinsic function filter . The conv function computes this product using an FFT.

     g = {1, 2}
     h = polmul(g, g)
     1 + 4 x^1 + 4 x^2