Python | Numpy np.lagval3d() method

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

Syntax : np.lagval3d(x, y, z, c)
Return : Return the 3-D laguerre series at point x, y and z.

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

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output :

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



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output :

1.0

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.