Python | The numpy np.lagint () method



Using the np.lagint() method, we can get the Laguerre series as an array using np.lagint () .

Syntax: np.lagint (array of coefficient)
Return: Return the array of laguerre series.

Example # 1:
In this example, we see that with np.lagint () we we can get the Laguerre series as an array.

# NumPy imports

from numpy.polynomial.laguerre import lagint

 
# using the np.lagint () method

gfg = lagint ([ 1 , 2 , 3 ])

  

print (gfg)

Output:

[1. 1. 1. -3.]

Example # 2:

# NumPy import

from numpy.polynomial.laguerre import lagint

 
# using the np.lagint () method

gfg = lagint ([[ 1 , 2 , 3 ], [ 4 , 5 , 6 ]])

 

print (gfg)

Output:

[[1. 2. 3.]
[3. 3. 3.]
[-4. -five. -6.]]