Python | Numpy np.laggrid3d() method (original) (raw)
Last Updated : 29 Dec, 2019
**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, it is first converted to an ndarray, otherwise it is left unchanged and, if it isn’t an ndarray, it is treated as a scalar.
**c :**[array_like] 1-D arrays of Laguerre series coefficients ordered from low to high.Return : [ndarray] The values of the two dimensional Chebyshev series at points in the Cartesian product of x and y.
Code #1 :
import
numpy as np
from
numpy.polynomial.laguerre
import
laggrid3d
c
=
np.array([[
1
,
3
,
5
], [
2
,
4
,
6
], [
10
,
11
,
12
]])
ans
=
laggrid3d([
7
,
9
], [
8
,
10
], [
5
,
6
], c)
print
(ans)
Output:
[[ -9521.5 -12198. ] [-19782.5 -25346. ]]
Code #2 :
import
numpy as np
from
numpy.polynomial.laguerre
import
laggrid3d
c
=
np.array([[
1
,
3
,
5
], [
2
,
4
,
6
], [
10
,
11
,
12
]])
ans
=
laggrid3d(
7
,
11
,
12
, c)
print
(ans)
Similar Reads
- Python | Numpy np.leggrid3d() method np.leggrid3d() method is used to evaluate a 3-D legendre series on the Cartesian product of x, y and z. Syntax : np.leggrid3d(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.laggrid2d() method np.laggrid2d() method is used to evaluate a 2-D Laguerre series on the Cartesian product of x and y. Syntax : np.laggrid2d(x, y, c) Parameters: x, y :[array_like]The two dimensional series is evaluated at the points in the Cartesian product of x and y. If x or y is a list or tuple, it is first conve 2 min read
- Python | Numpy np.leggrid2d() method np.leggrid2d() method is used to evaluate a 2-D legendre series on the Cartesian product of x and y. Syntax : np.leggrid2d(x, y, c) Parameters: x, y :[array_like]The two dimensional series is evaluated at the points in the Cartesian product of x and y. If x or y is a list or tuple, it is first conve 2 min read
- Python | Numpy np.lagadd() method np.lagadd() method is used to add one Laguerre series to another.It returns the sum of two Laguerre series c1 + c2. Syntax : np.lagadd(c1, c2) Parameters: c1, c2 :[ array_like ] 1-D arrays of Laguerre series coefficients ordered from low to high. Return : [ndarray] Array representing the Laguerre se 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
- Python | Numpy np.lagfit() method With the help of np.lagfit() method, we can get the least squares fit of laguerre series of a given data by using np.lagfit() method. Syntax : np.lagfit(x, y, deg) Return : Return the least squares fit of laguerre series to data. Example #1 : In this example we can see that by using np.lagfit() meth 1 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.lagint() method With the help of np.lagint() method, we can get the laguerre series in the form of an array by using np.lagint() method. Syntax : np.lagint(array of coefficient) Return : Return the array of laguerre series. Example #1 : In this example we can see that by using np.lagint() method, we are able to get 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.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