Integrate a polynomial.
Numeric.poly.int(coefficients, order = 1, constant = 0, lower = 0, basis = 'poly')Applies integration repeatedly to reach the order.
- Parameters:
coefficients: Coefficients of the source polynomialorder: Number of integrations to applyconstant: Constant term added to the resultlower: Lower bound used for the integrationbasis: Polynomial basis or scale factoroutput: Target polynomial basis or axislevel: Axis index when the output is numeric
- Returns: Coefficients of the integrated polynomial
- NumPy: Covers
np.polynomial.polynomial.polyint,np.polynomial.chebyshev.chebint,np.polynomial.legendre.legint,np.polynomial.hermite.hermint,np.polynomial.hermite_e.hermeint,np.polynomial.laguerre.lagint,np.polyintthrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const coefficients = Numeric.poly.int([1, 2, 3])
console.log(coefficients)
// [0,1,1,1]import Numeric from '@neabyte/numerix'
const coefficients = Numeric.poly.int([1, 2, 3], 1, 1)
console.log(coefficients)
// [1,1,1,1]import Numeric from '@neabyte/numerix'
const coefficients = Numeric.poly.int([1, 2, 3], 2)
console.log(coefficients)
// [0,0,0.5,0.3333333333333333,0.25]import Numeric from '@neabyte/numerix'
const coefficients = Numeric.poly.int([1, 2, 3], 1, 0, 1)
console.log(coefficients)
// [-3,1,1,1]