Python | Numpy np.lagder() method (original) (raw)
Last Updated : 29 Dec, 2019
**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, optional] Each differentiation is multiplied by scl .Default is 1.
**axis :**[ int, optional] Axis over which the derivative is taken.Default is 0.Return : [ndarray] Laguerre series of the derivative.
Code #1 :
import
numpy as np
import
numpy.polynomial.laguerre as geek
s
=
(
2
,
4
,
8
)
res
=
geek.lagder(s)
print
(res)
Code #2 :
import
numpy as np
import
numpy.polynomial.laguerre as geek
s
=
(
1
,
2
,
3
,
4
,
5
)
res
=
geek.lagder(s, m
=
2
, scl
=
0.5
)
print
(res)
Similar Reads
- Python | Numpy np.lagzero() method np.lagzero() method can be used instead of np.zeros for creating a array whose elements are 0. Syntax : np.lagzero() Return : Return array([0]) Example #1 : # Python program explaining # numpy.lagzero() method # import numpy and lagzero import numpy as np from numpy.polynomial.laguerre import lagzer 1 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.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.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.lagone() method np.lagone() method can be used instead of np.ones for creating a array whose elements are 1. Syntax : np.lagone() Return : Return array([1]) Example #1 : # Python program explaining # numpy.lagone() method # import numpy and lagone import numpy as np from numpy.polynomial.laguerre import lagone # us 1 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
- 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.legvander() method np.legvander() method is used to returns the Vandermonde matrix of degree deg and sample points x. Syntax : np.legvander(x, deg) Parameters: x :[ array_like ] Array of points. The dtype is converted to float64 or complex128 depending on whether any of the elements are complex. If x is scalar it is c 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