Divide one polynomial by another.
Numeric.poly.div(dividend, divisor, basis = 'poly')Performs polynomial long division.
- Parameters:
dividend: Coefficients of the dividend polynomialdivisor: Coefficients of the divisor polynomialbasis: Polynomial basis of the coefficients
- Returns: Quotient and remainder coefficients
- NumPy: Covers
np.polynomial.polynomial.polydiv,np.polynomial.chebyshev.chebdiv,np.polynomial.legendre.legdiv,np.polynomial.hermite.hermdiv,np.polynomial.hermite_e.hermediv,np.polynomial.laguerre.lagdiv,np.polydivthrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const result = Numeric.poly.div([1, 2, 1], [1, 1])
console.log(result)
// [[1,1],[0]]import Numeric from '@neabyte/numerix'
const result = Numeric.poly.div([2, 4], [2])
console.log(result)
// [[1,2],[0]]import Numeric from '@neabyte/numerix'
const result = Numeric.poly.div([1, 2, 3], [1, 1])
console.log(result)
// [[-1,3],[2]]import Numeric from '@neabyte/numerix'
const result = Numeric.poly.div([1, 2, 1], [1, 2, 1])
console.log(result)
// [[1],[0]]