Contents Previous Next Subchapters

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

Description
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.

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