Numpy Articles

Page 18 of 81

Evaluate a 3-D Laguerre series on the Cartesian product of x, y and z in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 202 Views

To evaluate a 3-D Laguerre series on the Cartesian product of x, y and z, use the polynomial.laguerre.laggrid3d() method in Python. The method returns the values of the three-dimensional Laguerre series at points in the Cartesian product of x, y and z. Syntax numpy.polynomial.laguerre.laggrid3d(x, y, z, c) Parameters The function takes the following parameters: x, y, z: Arrays of coordinates where the series is evaluated. If a list or tuple, it's converted to ndarray. Scalars are treated as 0-D arrays. c: Array of coefficients ordered so that coefficients for terms of degree ...

Read More

Generate a Hermite series with given complex roots in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 202 Views

To generate a Hermite series with given complex roots, use the hermite.hermfromroots() method in Python NumPy. The method returns a 1-D array of coefficients. If all roots are real then out is a real array, if some of the roots are complex, then out is complex even if all the coefficients in the result are real. Syntax numpy.polynomial.hermite.hermfromroots(roots) Parameters roots − A sequence containing the roots of the Hermite polynomial. Example with Complex Roots Let's create a Hermite series with complex roots using imaginary unit j ? from numpy.polynomial import ...

Read More

Generate a Vandermonde matrix of the Laguerre polynomial with complex array of points in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 163 Views

To generate a pseudo Vandermonde matrix of the Laguerre polynomial with complex points, use the laguerre.lagvander() function from NumPy. This function returns a matrix where each row contains the evaluated Laguerre polynomials of different degrees at a specific point. Syntax numpy.polynomial.laguerre.lagvander(x, deg) Parameters The function accepts the following parameters − x − Array of points. The dtype is converted to float64 or complex128 depending on whether any elements are complex deg − Degree of the resulting matrix Return Value Returns a pseudo-Vandermonde matrix with shape x.shape + (deg + ...

Read More

Evaluate a 2-D Hermite series at points (x,y) with 3D array of coefficient in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 235 Views

To evaluate a 2D Hermite series at points (x, y), use the hermite.hermval2d() method in NumPy. This method returns the values of the two-dimensional polynomial at points formed with pairs of corresponding values from x and y. The first parameter consists of x and y coordinates. The two-dimensional series is evaluated at the points (x, y), where x and y must have the same shape. If x or y is a list or tuple, it is first converted to an ndarray, otherwise it is left unchanged and if it isn't an ndarray it is treated as a scalar. ...

Read More

Integrate a Hermite series and set the Integration constant in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 189 Views

To integrate a Hermite series, use the hermite.hermint() method in Python. This method integrates a Hermite series and allows you to set integration constants. Syntax numpy.polynomial.hermite.hermint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The method accepts the following parameters − c − Array of Hermite series coefficients. For multidimensional arrays, different axes correspond to different variables m − Order of integration (must be positive, default: 1) k − Integration constant(s). If empty list (default), all constants are zero. For m=1, can be a scalar lbnd − Lower bound of the integral (default: 0) ...

Read More

Evaluate a 2-D Laguerre series on the Cartesian product of x and y in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 179 Views

To evaluate a 2-D Laguerre series on the Cartesian product of x and y, use the polynomial.laguerre.laggrid2d() method in Python. The method returns the values of the two dimensional Laguerre series at points in the Cartesian product of x and y. If c has fewer than two dimensions, ones are implicitly appended to its shape to make it 2-D. The shape of the result will be c.shape[2:] + x.shape + y.shape. Syntax numpy.polynomial.laguerre.laggrid2d(x, y, c) Parameters x, y: The two dimensional series is evaluated at the points in the Cartesian product of x ...

Read More

Evaluate a 3D Laguerre series at points (x,y,z) with 2D array of coefficient in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 188 Views

To evaluate a 3D Laguerre series at points (x, y, z), use the polynomial.laguerre.lagval3d() method in Python NumPy. The method returns the values of the multidimensional polynomial on points formed with triples of corresponding values from x, y, and z. If c has fewer than 3 dimensions, ones are implicitly appended to its shape to make it 3-D. The shape of the result will be c.shape[3:] + x.shape. The 1st parameter is x, y, z. The three dimensional series is evaluated at the points (x, y, z), where x, y, and z must have the same shape. Syntax ...

Read More

Evaluate a 2D Laguerre series at points (x,y) with 3D array of coefficients in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 172 Views

To evaluate a 2D Laguerre series at points (x, y), use the polynomial.laguerre.lagval2d() method in NumPy. This method returns values of the two-dimensional polynomial at points formed with pairs of corresponding values from x and y coordinates. Syntax numpy.polynomial.laguerre.lagval2d(x, y, c) Parameters x, y: The two-dimensional series is evaluated at points (x, y), where x and y must have the same shape. If x or y is a list or tuple, it is first converted to an ndarray. c: Array of coefficients ordered so that the coefficient of the term of multi-degree i, ...

Read More

Generate a Vandermonde matrix of the Hermite polynomial with float array of points in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 205 Views

To generate a Vandermonde matrix of the Hermite polynomial, use the hermvander() function from NumPy's polynomial module. The method returns the pseudo-Vandermonde matrix where each row contains the Hermite polynomial basis functions evaluated at the corresponding point. The shape of the returned matrix is x.shape + (deg + 1, ), where the last index corresponds to the degree of the Hermite polynomial. The x parameter is an array of points (converted to float64 or complex128), and deg is the degree of the resulting matrix. Syntax numpy.polynomial.hermite.hermvander(x, deg) Parameters x: Array of points. If ...

Read More

Generate a Vandermonde matrix of the Hermite polynomial in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 347 Views

To generate a Vandermonde matrix of the Hermite polynomial, use the hermite.hermvander() function in Python NumPy. This method returns a pseudo-Vandermonde matrix where each row corresponds to a point and each column represents increasing degrees of Hermite polynomials. The shape of the returned matrix is x.shape + (deg + 1, ), where the last index represents the degree of the corresponding Hermite polynomial. The dtype matches the converted input array x. Parameters x: Array of points where the dtype is converted to float64 or complex128 depending on whether any elements are complex. Scalar values are converted to ...

Read More
Showing 171–180 of 802 articles
« Prev 1 16 17 18 19 20 81 Next »
Advertisements