Python | Numpy np.chebder () method

NumPy | Python Methods and Functions

Using the np.chebder() method, we can get the differentiated value of the Chebyshev series as an array with the coordinate value using np.chebder () .

Syntax: np.chebder (series, value)
Return: Return an array having coordinates of series after differentiation.

Example # 1:
In this example, we can see that with np. chebder () we can get the differentiation of the Chebyshev series, and it will return an array with the coordinates of this.

# NumPy import

import numpy as np

from numpy.polynomial import chebyshev as C

 

x = np.array ([ 1 , 2 , 3 ])

# using the np.chebder () method

gfg = C.chebder (x, 2 )

 

print (gfg)

Output:

 [12.] 

Example # 2:

# NumPy import

import numpy as np

from numpy.polynomial import chebyshev as C

 

x = np.array ([ 2 , 5 , 7 , 11 ] )

# using the np.chebder () method

gfg = C.chebder (x, 2 )

 

print (gfg)

Output:

 [28. 264.] 




Get Solution for free from DataCamp guru