Friday, September 20, 2024
Google search engine
HomeLanguagesPython | Numpy np.lagdomain() method

Python | Numpy np.lagdomain() method

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
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 :




# 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]

Dominic Rubhabha-Wardslaus
Dominic Rubhabha-Wardslaushttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Recent Comments