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