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 :
| # Python program explaining # numpy.lagdomain() method   # import numpy and lagdomain importnumpy as np fromnumpy.polynomial.laguerre importlagdomain  # using np.lagdomain() method fori inrange(5):     ans =lagdomain +[i, i +1]     print(ans)  | 
Output :
[-1 2]
[0 3]
[1 4]
[2 5]
[3 6]
Example #2 :
| # Python program explaining # numpy.lagdomain() method   # import numpy and lagdomain importnumpy as np fromnumpy.polynomial.laguerre importlagdomain  # using np.lagdomain() method fori inrange(4):     ans =lagdomain +[i-1, i +1]     print(ans)  | 
Output :
[-2 2]
[-1 3]
[0 4]
[1 5]
[2 6]

 
                                    







