jax.numpy.polyint#
- jax.numpy.polyint(p, m=1, k=None)#
Return an antiderivative (indefinite integral) of a polynomial.
LAX-backend implementation of
numpy.polyint()
.Original docstring below.
Note
This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide.
The returned order m antiderivative P of polynomial p satisfies \(\frac{d^m}{dx^m}P(x) = p(x)\) and is defined up to m - 1 integration constants k. The constants determine the low-order polynomial part
\[\frac{k_{m-1}}{0!} x^0 + \ldots + \frac{k_0}{(m-1)!}x^{m-1}\]of P so that \(P^{(j)}(0) = k_{m-j-1}\).
- Parameters:
p (array_like or poly1d) – Polynomial to integrate. A sequence is interpreted as polynomial coefficients, see poly1d.
m (int, optional) – Order of the antiderivative. (Default: 1)
k (list of m scalars or scalar, optional) –
Integration constants. They are given in the order of integration: those corresponding to highest-order terms come first.
If
None
(default), all constants are assumed to be zero. If m = 1, a single scalar can be given instead of a list.
- Return type: