Python | Numpy np.chebpow () method

Using the np.chebpow() method, we can get the degree of Chebyshev series using np.chebpow () .

Syntax: np.chebpow (s1, power)
Return: Return an array after power the series.

Example # 1:
In this example, we can see that using np.chebpow ( ) we can get the degree of Chebyshev series using this method.

# NumPy import

import numpy as np

from numpy.polynomial import chebyshev as C

 

s1 = ( 4 , 6 , 8 )

 
# using the np.chebpow () method

gfg = C.chebpow (s1, 5 )

  

print (gfg)

Output:

[224664. 429180 381240 305790 227400 151206 91560 47040 21760
7680 2048]

Example # 2:

Output:

[74. 111. 104.5 109. 88.5 70. 60. 50 . 20. 24. 18.]


# NumPy import

import numpy as np

from numpy.polynomial import chebyshev as C

 

s1 = ( 3 , 5 , 7 , 2 , 4 , 6 )

  
# using the np.chebpow () method

gfg = C.chebpow (s1, 2 )

 

print (gfg)