Python | Numpy np.lagmulx() method
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 and lagmulximport numpy as npfrom numpy.polynomial.laguerre import lagmulx series = np.array([1, 2, 3, 4, 5]) # using np.lagmulx() methodgfg = lagmulx(series) print(gfg) |
Output :
[ -1. -1. -1. -1. 29. -25.]
Example #2 :
# import numpy and lagmulximport numpy as npfrom numpy.polynomial.laguerre import lagmulx series = np.array([10, 20, 30]) # using np.lagmulx() methodgfg = lagmulx(series) print(gfg) |
Output :
[ -10. -10. 110. -90.]




