Thursday, February 5, 2026
HomeLanguagesPython | Numpy np.lagval2d() method

Python | Numpy np.lagval2d() method

With the help of np.lagval2d() method, we can get the 2-D laguerre series at point x by using np.lagval2d() method.

Syntax : np.lagval2d(x, y, c)
Return : Return the 2-D laguerre series at point x and y.

Example #1 :
In this example we can see that by using np.lagval2d() method, we are able to get the 2-D laguerre series at point x and y by using this method.




# import numpy and lagval2d
import numpy as np
from numpy.polynomial.laguerre import lagval2d
  
x = np.array([[1, 2], [3, 4]])
y = np.array([[5, 10], [15, 20]])
c = np.array([1, 2])
  
# import np.lagval2d() method
gfg = lagval2d(x, y, c)
  
print(gfg)


Output :

[[13. 44.]
[43. 94.]]

Example #2 :




# import numpy and lagval2d
import numpy as np
from numpy.polynomial.laguerre import lagval2d
  
x = np.array([[1, 2], [3, 4]])
y = np.array([[-1, -2], [-3, -4]])
c = np.array([1, -2])
  
# import np.lagval2d() method
gfg = lagval2d(x, y, c)
  
print(gfg)


Output :

[[11. 24.]
[21. 38.]]

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

Most Popular

Dominic
32481 POSTS0 COMMENTS
Milvus
126 POSTS0 COMMENTS
Nango Kala
6857 POSTS0 COMMENTS
Nicole Veronica
11982 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12069 POSTS0 COMMENTS
Shaida Kate Naidoo
6992 POSTS0 COMMENTS
Ted Musemwa
7230 POSTS0 COMMENTS
Thapelo Manthata
6940 POSTS0 COMMENTS
Umr Jansen
6923 POSTS0 COMMENTS