Contents Previous Next Subchapters

Composition Of Polynomials As Functions
Syntax polcomp(pq)
See Also pol2asc , polmul , polval

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

     p = {1, 2, 3}
     q = {1, 2}
     h = polcomp(p, q)
     6 + 16 x^1 + 12 x^2