Python | Numpy np.chebval3d() method (original) (raw)
Last Updated : 11 Nov, 2019
With the help of **np.chebval3d()**
method, we can get the array of coefficients after evaluation on (x, y, z) on chebyshev series by using np.chebval3d()
method.
Syntax :
np.chebval3d(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.chebval3d()
method, we are able to get the array of coefficients by evaluating (x, y, z) on chebyshev series.
import
numpy as np
import
numpy.polynomial.chebyshev as cheb
gfg
=
cheb.chebval3d((
2
,
5
), (
1
,
3
), (
4
,
8
), (
2
,
-
4
,
1
))
print
(gfg)
Output :
[408. 784.]
Example #2 :
import
numpy as np
import
numpy.polynomial.chebyshev as cheb
gfg
=
cheb.chebval3d((
1
,
3
,
5
,
7
), (
2
,
4
,
8
), (
-
10
,
-
12
), (
2
,
-
4
,
1
,
5
,
1
))
print
(gfg)
Output :
[1.04493678e+10 1.50855857e+10]
Similar Reads
- Python | Numpy np.chebval2d() method With the help of np.chebval2d() method, we can get the array of coefficients after evaluation on (x, y) on chebyshev series by using np.chebval2d() method. Syntax : np.chebval2d(x, y, c) Return : Return an array after evaluation on (x, y). Example #1 : In this example we can see that by using np.che 1 min read
- Python | Numpy np.chebval() method With the help of np.chebval() method, we can get the array of coefficients after evaluation of x on chebyshev series by using np.chebval() method. Syntax : np.chebval(x, c) Return : Return an array after evaluation on x. Example #1 : In this example we can see that by using np.chebval() method, we a 1 min read
- 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 c 1 min read
- Python | Numpy np.hermeval3d() method With the help of np.hermeval3d() method, we can evaluate a 3-D hermite series on point (x, y, z), where (x, y, z) is defined in the np.hermeval3d() method. Syntax : np.hermeval3d(x, y, series) Return : Return the evaluated 3-D hermite series. Example #1 : In this example we can see that by using np. 1 min read
- Python | Numpy np.chebdiv() method With the help of np.chebdiv() method, we can get the division of two Chebyshev series by using np.chebdiv() method. Syntax : np.chebdiv(s1, s2) Return : Return an array after division. Example #1 : In this example we can see that by using np.chebdiv() method, we are able to get the division of two c 1 min read
- Python | Numpy np.chebder() method With the help of np.chebder() method, we can get the differentiated value of chebyshev series in the form of an array having value of coordinates using np.chebder() method. Syntax : np.chebder(series, value) Return : Return an array having coordinates of series after differentiation. Example #1 : In 1 min read
- Python | Numpy np.chebmul() method With the help of np.chebmul() method, we can get the multiplication of two Chebyshev series by using np.chebmul() method. Syntax : np.chebmul(s1, s2) Return : Return an array after multiplication. Example #1 : In this example we can see that by using np.chebmul() method, we are able to get the multi 1 min read
- 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 exam 1 min read
- Python | Numpy np.chebmulx() method With the help of np.chebmulx() method, we can get the multiplication of Chebyshev series with independent variable x by using np.chebmulx() method. Syntax : np.chebmulx(s1) Return : Return an array after multiplication with x. Example #1 : In this example we can see that by using np.chebmulx() metho 1 min read
- Python | Numpy np.lagval3d() method With the help of np.lagval3d() method, we can get the 3-D laguerre series at point x by using np.lagval3d() method. Syntax : np.lagval3d(x, y, z, c) Return : Return the 3-D laguerre series at point x, y and z. Example #1 : In this example we can see that by using np.lagval3d() method, we are able to 1 min read