Sunday, October 5, 2025
HomeLanguagesPython | Numpy np.chebpow() method

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 chebyshev series using this method.




# import numpy
import numpy as np
from numpy.polynomial import chebyshev as C
  
s1 = (4, 6, 8)
  
# using np.chebpow() method
gfg = C.chebpow(s1, 5)
  
print(gfg)


Output :

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

Example #2 :




# import numpy
import numpy as np
from numpy.polynomial import chebyshev as C
  
s1 = (3, 5, 7, 2, 4, 6)
  
# using np.chebpow() method
gfg = C.chebpow(s1, 2)
  
print(gfg)


Output :

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

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32337 POSTS0 COMMENTS
Milvus
86 POSTS0 COMMENTS
Nango Kala
6706 POSTS0 COMMENTS
Nicole Veronica
11871 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11934 POSTS0 COMMENTS
Shaida Kate Naidoo
6822 POSTS0 COMMENTS
Ted Musemwa
7088 POSTS0 COMMENTS
Thapelo Manthata
6779 POSTS0 COMMENTS
Umr Jansen
6778 POSTS0 COMMENTS