Evaluate a 2D Laguerre series at points (x,y) with 1D array of coefficient using NumPy in Python Last Updated : 11 May, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will Evaluate a 2D Laguerre series at points (x,y) with a 1D array of coefficient Laguerre.lagval2d method In Python, laguerre.lagval2d() is used to evaluate a 2D Laguerre series at points (x,y). where coefficient_array is the input NumPy 1D array with coefficients and points referred to as x and y. The first parameter can be a list of points so we have to provide two lists such that each list has an x-point and y-point. The second parameter is a NumPy array of coefficients ordered such that it is of 3 Dimensions. Syntax: laguerre.lagval2d(x,y,c) Parameters: x,y: array_like, compatible objectsc: Array of coefficients. Return: The values of the two dimensional polynomial at points Example 1: In this example, we are creating a NumPy array with 5 coefficients to evaluate Laguerre Series at points [3,4],[1,2]. Python3 # import numpy module import numpy # import laguerre from numpy.polynomial import laguerre # Create 1d array of 5 elements coefficient_array = numpy.array([45, 67, 54, 53, 15]) # Display print(coefficient_array) # display the Dimensions print(coefficient_array.ndim) # display Shape print(coefficient_array.shape) # Evaluate a 2D Laguerre series at points # (x,y) - [3,4],[1,2] print(laguerre.lagval2d([3, 4], [1, 2], coefficient_array)) Output: [45 67 54 53 15] 1 (5,) [-42.375 -79.04166667]Example 2: In this example, we are creating a NumPy array with 6 coefficients and evaluating Laguerre Series at points [1,4],[1,2]. Python3 # import numpy module import numpy # import laguerre from numpy.polynomial import laguerre # Create 1d array of 6 elements coefficient_array = numpy.array([45,67,54,53,67, 15]) # Display print(coefficient_array) # display the Dimensions print(coefficient_array.ndim) # display Shape print(coefficient_array.shape) # Evaluate a 2D Laguerre series at points # (x,y) - [1,4],[1,2] print(laguerre.lagval2d([1,4],[1,2],coefficient_array)) Output: [45 67 54 53 67 15] 1 (6,) [ -66.20833333 -141.875] Comment More infoAdvertise with us Next Article Evaluate a 2D Laguerre series at points (x,y) using NumPy in Python S sravankumar_171fa07058 Follow Improve Article Tags : Python Python-numpy Python numpy-polynomials Practice Tags : python Similar Reads Evaluate a 3D Laguerre series at points (x,y,z) with 4D array of coefficient using NumPy in Python In this article, we will evaluate a 3D Laguerre Series at points (x,y) with 4 dimensional array of coefficient in Python. laguerre.lagval3d() The laguerre.lagval3d() is used to evaluate a 3D Laguerre series at points (x,y)  which returns the values of the multidimensional polynomial on points formed 2 min read Evaluate a 2-D Hermite series at points (x,y) with 3D array of coefficient using NumPy in Python In this article, we'll look at how to evaluate a 2-dimensional Hermite series using NumPy in Python at an array of points x, and y with the 3-dimensional array. np.hermval2d method We are using the hermite.hermval2d() function from the Numpy module to evaluate a 2D Hermite series at locations (x, y) 2 min read Evaluate a 2-D Hermite_e series at points (x,y) with 3D array of coefficient using NumPy in Python In this article, we will cover how to evaluate a 2-D Hermite_e series at points (x,y) with a 3D array of coefficients using NumPy in Python. np.polynomial.hermite_e.hermeval2d method The np.polynomial.hermite_e.hermeval2d from the NumPy library is used to Evaluate a 2-D Hermite_e series at points(x, 3 min read Evaluate a 2D Laguerre series at points (x,y) using NumPy in Python In this article, we will discuss how to evaluate a 2D Laguerre series at points (x,y) using NumPy in Python. Example Input: [[[ 0 1 2] [ 3 4 5] [ 6 7 8]] [[ 9 10 11] [12 13 14] [15 16 17]] [[18 19 20] [21 22 23] [24 25 26]]] Output: [[[1920. 522.] [ 414. 108.]] [[2020. 552.] [ 444. 117.]] [[2120. 58 3 min read Evaluate a 3-D polynomial at points (x, y, z) with 4D array of coefficient using NumPy in Python In this article, we will look at how to evaluate a 3-dimensional polynomial at points (x, y, z) with a 4D array of coefficients using NumPy in Python. polynomial.polyval3d method We are using polynomial.polyval3d() function present in the NumPy module of python for the evaluation purpose of a 3-dim 2 min read Evaluate a 3D Laguerre series at points (x,y,z) using NumPy in Python In this article, we will cover how to evaluate a 3D Laguerre series at points (x,y,z) using NumPy in Python. numpy.polynomial.legendre.legval3d The numpy.polynomial.legendre.legval3d() method from the NumPy library is used to evaluate a 3D Laguerre series at points(x,y,z) in Python. Only tuples or l 3 min read Like