Python | Numpy np.lagdomain() method (original) (raw)
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 :
Python3 1=1 `
Python program explaining
numpy.lagdomain() method
import numpy and lagdomain
import numpy as np from numpy.polynomial.laguerre import lagdomain
using np.lagdomain() method
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 :
Python3 1=1 `
Python program explaining
numpy.lagdomain() method
import numpy and lagdomain
import numpy as np from numpy.polynomial.laguerre import lagdomain
using np.lagdomain() method
for i in range(4): ans = lagdomain + [i-1, i + 1] print(ans)
`
Output :
[-2 2] [-1 3] [0 4] [1 5] [2 6]