Python | Numpy np.chebfromroots() method Last Updated : 11 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of np.chebfromroots() method, we can get the chebyshev series with the roots passed as parameter in np.chebfromroots() method. Syntax : np.chebfromroots(roots) Return : Return the chebyshev series. Example #1 : In this example we can see that by using np.chebfromroots() method, we are able to get the chebyshev series that is generated by roots those are passed by parameter. Python3 1=1 # import numpy import numpy as np import numpy.polynomial.chebyshev as cheb # using np.chebfromroots() method gfg = cheb.chebfromroots((2, 4, 8, 1)) print(gfg) Output : [9.9375e+01 -1.3125e+02 3.5500e+01 -3.7500e+00 1.2500e-01] Example #2 : Python3 1=1 # import numpy import numpy as np import numpy.polynomial.chebyshev as cheb # using np.chebfromroots() method gfg = cheb.chebfromroots((-3, 4, -5, 1, 10)) print(gfg) Output : [-5.19125e+02 4.52375e+02 8.00000e+01 -1.24375e+01 -8.75000e-01 6.25000e-02] Comment More infoAdvertise with us Next Article Python | Numpy np.legfromroots() method J jitender_1998 Follow Improve Article Tags : Technical Scripter Python Python-numpy Practice Tags : python Similar Reads Python | Numpy np.legfromroots() method np.legfromroots() method is used to generate a legendre series with given roots. Syntax : np.legfromroots(roots) Parameters: roots :[array_like] Input sequence containing the roots. Return : [ndarray] 1-D array of coefficients of legendre series. Code #1 : Python3 # Python program explaining # numpy 1 min read Python | Numpy np.chebfit() method With the help of np.chebfit() method, we can get the least square fit of chebyshev series by using np.chebfit() method. Syntax : np.chebfit(x, y, degree) Return : Return the array of chebyshev series coefficient values. Example #1 : In this example we can see that using np.chebfit() method, we are a 1 min read Python | Numpy np.chebpow() method With the help of np.chebpow() method, we can get the power of Chebyshev series by using np.chebpow() method. Syntax : np.chebpow(s1, power) Return : Return an array after power the series. Example #1 : In this example we can see that by using np.chebpow() method, we are able to get the power of cheb 1 min read Python | Numpy np.chebmul() method With the help of np.chebmul() method, we can get the multiplication of two Chebyshev series by using np.chebmul() method. Syntax : np.chebmul(s1, s2) Return : Return an array after multiplication. Example #1 : In this example we can see that by using np.chebmul() method, we are able to get the multi 1 min read Python | Numpy np.chebsub() method With the help of np.chebsub() method, we can get the subtraction of two Chebyshev series by using np.chebsub() method. Syntax : np.chebsub(s1, s2) Return : Return an array after subtraction. Example #1 : In this example we can see that by using np.chebsub() method, we are able to get the subtraction 1 min read Python | Numpy np.chebint() method With the help of np.chebint() method, we can get the integration value of chebyshev series in the form of an array having value of coordinates using np.chebint() method. Syntax : np.chebint(series, value) Return : Return an array having coordinates of series after integration. Example #1 : In this e 1 min read Like