Python | Numpy np.lagval3d() method (original) (raw)
Last Updated : 23 Jan, 2020
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 get the 3-D laguerre series at point x, y and z by using this method.
import
numpy as np
from
numpy.polynomial.laguerre
import
lagval3d
x
=
np.array([[
1
,
2
], [
3
,
4
]])
y
=
np.array([[
-
5
,
-
10
], [
-
15
,
-
20
]])
z
=
np.array([[
1
,
2
], [
3
,
4
]])
c
=
np.array([
1
,
2
])
gfg
=
lagval3d(x, y, z, c)
print
(gfg)
Output :
[[13. 44.]
[43. 94.]]
Example #2 :
import
numpy as np
from
numpy.polynomial.laguerre
import
lagval3d
x, y, z
=
1
,
2
,
3
c
=
np.array([
1
,
2
])
gfg
=
lagval3d(x, y, z, c)
print
(gfg)
Output :
1.0
Similar Reads
- Python | Numpy np.lagval2d() method With the help of np.lagval2d() method, we can get the 2-D laguerre series at point x by using np.lagval2d() method. Syntax : np.lagval2d(x, y, c) Return : Return the 2-D laguerre series at point x and y. Example #1 : In this example we can see that by using np.lagval2d() method, we are able to get t 1 min read
- Python | Numpy np.lagval() method With the help of np.lagval() method, we can get the laguerre series at point x by using np.lagval() method. Syntax : np.lagval(x, c) Return : Return the laguerre series at point x. Example #1 : In this example we can see that by using np.lagval() method, we are able to get the laguerre series at poi 1 min read
- Python | Numpy np.lagvander3d() method np.lagvander3d() method is used to returns the Vandermonde matrix of degree deg and sample points x, y and z. Syntax : np.lagvander3d(x, y, z, deg) Parameters: x, y, z :[ array_like ] Array of points. The dtype is converted to float64 or complex128 depending on whether any of the elements are comple 2 min read
- Python | Numpy np.lagvander() method With the help of np.lagvander() method, we can get the Pseudo-Vandermonde matrix from given array having degree which is passed as parameter by using np.lagvander() method. Syntax : np.lagvander(arr, degree) Parameters: arr :[ array_like ] Array of points. The dtype is converted to float64 or comple 2 min read
- Python | Numpy np.lagder() method np.lagroots() method is used to differentiate a Laguerre series. Syntax : np.lagder(c, m=1, scl=1, axis=0) Parameters: c :[array_like] 1-D arrays of Laguerre series coefficients ordered from low to high. m :[int, optional] Number of derivatives taken, must be non-negative.Default is 1. scl :[scalar, 1 min read
- Python | Numpy np.lagdiv() method np.lagdiv() method is used to divide one Laguerre series to another.It returns the quotient-with-remainder of two Laguerre series c1 / c2. Syntax : np.lagdiv(c1, c2) Parameters: c1, c2 :[ array_like ] 1-D arrays of Laguerre series coefficients ordered from low to high. Return : [ndarray] Laguerre se 1 min read
- Python | Numpy np.lagmul() method np.lagmul() method is used to multiply one Laguerre series to another.It returns the product of two Laguerre series c1 * c2. Syntax : np.lagmul(c1, c2) Parameters: c1, c2 :[ array_like ] 1-D arrays of Laguerre series coefficients ordered from low to high. Return : [ndarray] Laguerre series coefficie 1 min read
- Python | Numpy np.laggrid3d() method np.laggrid3d() method is used to evaluate a 3-D Laguerre series on the Cartesian product of x, y and z. Syntax : np.laggrid3d(x, y, z, c) Parameters: x, y, z :[array_like]The three dimensional series is evaluated at the points in the Cartesian product of x, y and z. If x or y or z is a list or tuple 2 min read
- Python | Numpy np.legvander3d() method np.legvander3d() method is used to returns the Vandermonde matrix of degree deg and sample points x, y and z. Syntax : np.legvander3d(x, y, z, deg) Parameters: x, y, z :[ array_like ] Array of points. The dtype is converted to float64 or complex128 depending on whether any of the elements are comple 2 min read
- Python | Numpy np.lagvander2d() method With the help of np.lagvander2d() method, we can get the Pseudo-Vandermonde matrix from given array having degree which is passed as parameter by using np.lagvander2d() method. Syntax : np.lagvander2d(x, y, deg) Parameters: x, y :[ array_like ] Array of points. The dtype is converted to float64 or c 2 min read