Python | Numpy np.lagdomain() method
Last Updated :
29 Dec, 2019
With the help of np.lagdomain()
method, we can get the filter having value array([0, 1]) in laguerre series.
Syntax : np.lagdomain
Return : Return filter of array([0, 1])
Example #1 :
import numpy as np
from numpy.polynomial.laguerre import lagdomain
for i in range ( 5 ):
ans = lagdomain + [i, i + 1 ]
print (ans)
|
Output :
[-1 2]
[0 3]
[1 4]
[2 5]
[3 6]
Example #2 :
import numpy as np
from numpy.polynomial.laguerre import lagdomain
for i in range ( 4 ):
ans = lagdomain + [i - 1 , i + 1 ]
print (ans)
|
Output :
[-2 2]
[-1 3]
[0 4]
[1 5]
[2 6]
Share your thoughts in the comments
Please Login to comment...