jax.numpy.polyaddΒΆ

jax.numpy.polyadd(a1, a2)[source]ΒΆ

Find the sum of two polynomials.

LAX-backend implementation of polyadd().

Original docstring below.

Returns the polynomial resulting from the sum of two input polynomials. Each input must be either a poly1d object or a 1D sequence of polynomial coefficients, from highest to lowest degree.

Parameters
  • a1 (array_like or poly1d object) – Input polynomials.

  • a2 (array_like or poly1d object) – Input polynomials.

Returns

out – The sum of the inputs. If either input is a poly1d object, then the output is also a poly1d object. Otherwise, it is a 1D array of polynomial coefficients from highest to lowest degree.

Return type

ndarray or poly1d object