Friday, December 12, 2025
HomeLanguagesPython | Numpy np.chebint() method

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 example we can see that by using np.chebint() method, we are able to get the integration of chebyshev series and it will return an array having coordinates of it.




# import numpy
import numpy as np
from numpy.polynomial import chebyshev as C
  
x = np.array([1, 2, 3])
# using np.chebint() method
gfg = C.chebint(x, 2)
  
print(gfg)


Output :

[-0.3125      0.25       -0.25        0.08333333  0.0625    ]

Example #2 :




# import numpy
import numpy as np
from numpy.polynomial import chebyshev as C
  
x = np.array([2, 5, 7, 11])
# using np.chebint() method
gfg = C.chebint(x, 2)
  
print(gfg)


Output :

[-0.8125     -2.125      -0.66666667 -0.47916667  0.14583333  0.1375    ]
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32444 POSTS0 COMMENTS
Milvus
105 POSTS0 COMMENTS
Nango Kala
6813 POSTS0 COMMENTS
Nicole Veronica
11951 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12028 POSTS0 COMMENTS
Shaida Kate Naidoo
6945 POSTS0 COMMENTS
Ted Musemwa
7198 POSTS0 COMMENTS
Thapelo Manthata
6892 POSTS0 COMMENTS
Umr Jansen
6881 POSTS0 COMMENTS