Python | Numpy np.lagder() method
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)
|
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...