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
32533 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6913 POSTS0 COMMENTS
Nicole Veronica
12029 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12132 POSTS0 COMMENTS
Shaida Kate Naidoo
7043 POSTS0 COMMENTS
Ted Musemwa
7280 POSTS0 COMMENTS
Thapelo Manthata
7000 POSTS0 COMMENTS
Umr Jansen
6986 POSTS0 COMMENTS