Friday, June 12, 2026
HomeLanguagesPython | Numpy np.chebgrid3d() method

Python | Numpy np.chebgrid3d() method

With the help of np.chebgrid3d() method, we can get the array of coefficients after evaluation the chebyshev series on cartesian product of x, y and z by using np.chebgrid3d() method.

Syntax : np.chebgrid3d(x, y, z, c)
Return : Return an array after evaluation on (x, y, z).

Example #1 :
In this example we can see that by using np.chebgrid3d() method, we are able to get the array of coefficients by evaluating the chebyshev series on the cartesian product of x, y and z.




# import numpy
import numpy as np
import numpy.polynomial.chebyshev as cheb
  
# using np.chebgrid3d() method
gfg = cheb.chebgrid3d((2, 5), (1, 3), (5, 6, -3), (2, -4, 1))
  
print(gfg)


Output :

[502. 596. -250.]

Example #2 :




# import numpy
import numpy as np
import numpy.polynomial.chebyshev as cheb
  
# using np.chebgrid3d() method
gfg = cheb.chebgrid3d((1, -3, 7), (-2, 4, -8), (3, -4, 1), (2, -4, 1, 5, 1))
  
print(gfg)


Output :

[57913404. 97926342. 4230432.]

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

Most Popular

Dominic
32515 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6897 POSTS0 COMMENTS
Nicole Veronica
12013 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6964 POSTS0 COMMENTS