Related Articles

# Python | Numpy np.chebdiv() method

• Last Updated : 03 Nov, 2019

With the help of np.chebdiv() method, we can get the division of two Chebyshev series by using np.chebdiv() method.

Syntax : np.chebdiv(s1, s2)
Return : Return an array after division.

Example #1 :
In this example we can see that by using np.chebdiv() method, we are able to get the division of two chebyshev series using this method.

 # import numpyimport numpy as npfrom numpy.polynomial import chebyshev as C  s1 = (4, 6, 8)s2 = (3, 5, 7)  # using np.chebdiv() methodgfg = C.chebdiv(s1, s2)  print(gfg)

Output :

(array([1.14285714]), array([0.57142857, 0.28571429]))

Example #2 :

 # import numpyimport numpy as npfrom numpy.polynomial import chebyshev as C  s1 = (4, 6, 8, 1, 3, 5)s2 = (3, 5, 7, 2, 4, 6)# using np.chebdiv() methodgfg = C.chebdiv(s1, s2)  print(gfg)

Output :

(array([0.83333333]), array([ 1.5, 1.83333333, 2.16666667, -0.66666667, -0.33333333]))

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

My Personal Notes arrow_drop_up