Open In App

Python | Numpy np.legdiv() method

Last Updated : 31 Dec, 2019
Summarize
Comments
Improve
Suggest changes
Share
4 Likes
Like
Report
np.legdiv() method is used to divide one Legendre series to another.It returns the quotient-with-remainder of two Legendre series c1 / c2.
Syntax : np.legdiv(c1, c2) Parameters: c1, c2 :[ array_like ] 1-D arrays of Legendre series coefficients ordered from low to high. Return : [ndarray] Legendre series coefficients representing the quotient and remainder.
Code #1 :
Output:
(array([ 1.6]), array([ 0.4, -0.8]))
  Code #2 :
Output:
(array([ 5.]), array([ 0.]))

Similar Reads