Python | Numpy np.lagmulx() method (original) (raw)
Last Updated : 29 Dec, 2019
With the help of **np.lagmulx()**
method, we can get the multiplication of Laguerre series with x by using np.lagmulx()
method, where x is an independent variable.
Syntax :
np.lagmulx(series)
Return : Return the coefficient of series after multiplication.
Example #1 :
In this example we can see that by using np.lagmulx()
method, we are able to get the coefficient of series after multiplication of Laguerre series with independent variable x by using this method.
import
numpy as np
from
numpy.polynomial.laguerre
import
lagmulx
series
=
np.array([
1
,
2
,
3
,
4
,
5
])
gfg
=
lagmulx(series)
print
(gfg)
Output :
[ -1. -1. -1. -1. 29. -25.]
Example #2 :
import
numpy as np
from
numpy.polynomial.laguerre
import
lagmulx
series
=
np.array([
10
,
20
,
30
])
gfg
=
lagmulx(series)
print
(gfg)
Output :
[ -10. -10. 110. -90.]
Similar Reads
- 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.lagsub() method np.lagub() method is used to subtract one Laguerre series to another.It returns the difference of two Laguerre series c1 - c2. Syntax : np.lagub(c1, c2) Parameters: c1, c2 :[ array_like ] 1-D arrays of Laguerre series coefficients ordered from low to high. Return : [ndarray] Laguerre series coeffici 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.lagtrim() method With the help of np.lagtrim() method, we can trim the small trailing values of the polynomial by using np.lagtrim() method. Syntax : np.lagtrim(c, tol) Return : Return the trimmed values from the polynomial. Example #1 : In this example we can see that by using np.lagtrim() method, we are able to ge 1 min read
- Python | Numpy np.laggauss() method np.laggauss() Computes the sample points and weights for Gauss-Laguerre quadrature. These sample points and weights will correctly integrate polynomials of degree 2*deg - 1 or less over the interval [0, inf] with the weight function f(x) = exp(-x) Syntax : np.laggauss(deg) Parameters: deg :[int] Num 1 min read
- 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.lag2poly() method np.lag2poly() method is used to convert a Laguerre series to a polynomial. Syntax : np.lag2poly(c) Parameters: c :[array_like] 1-D arrays of Laguerre series coefficients ordered from low to high. Return : [ndarray] 1-D array containing the coefficients of the equivalent polynomial. Code #1 : # Pytho 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