numpy.polyadd

numpy.polyadd(a1, a2)

Returns sum of two polynomials.

Returns sum of polynomials; a1 + a2. Input polynomials are represented as an array_like sequence of terms or a poly1d object.

Parameters:

a1 : {array_like, poly1d}

Polynomial as sequence of terms.

a2 : {array_like, poly1d}

Polynomial as sequence of terms.

Returns:

out : {ndarray, poly1d}

Array representing the polynomial terms.

Previous topic

numpy.polyint

Next topic

numpy.polydiv

This Page

Quick search