Friday, February 6, 2026
HomeLanguagesPython | Numpy np.chebadd() method

Python | Numpy np.chebadd() method

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

Syntax : np.chebadd(s1, s2)
Return : Return an array after addition.

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




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


Output :

[ 7. 11. 15.]

Example #2 :




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


Output :

[ 7. 11. 15. 3. 7. 11.]

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

Most Popular

Dominic
32490 POSTS0 COMMENTS
Milvus
126 POSTS0 COMMENTS
Nango Kala
6862 POSTS0 COMMENTS
Nicole Veronica
11985 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12073 POSTS0 COMMENTS
Shaida Kate Naidoo
6995 POSTS0 COMMENTS
Ted Musemwa
7236 POSTS0 COMMENTS
Thapelo Manthata
6946 POSTS0 COMMENTS
Umr Jansen
6931 POSTS0 COMMENTS