Python Articles

Page 153 of 855

Integrate a Hermite series over specific axis in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 187 Views

To integrate a Hermite series, use the hermite.hermint() method in Python. This method integrates Hermite series coefficients over a specified axis, making it useful for polynomial integration in scientific computing. Syntax numpy.polynomial.hermite.hermint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters Parameter Description Default c Array of Hermite series coefficients Required m Order of integration (must be positive) 1 k Integration constant(s) [] (zero) lbnd Lower bound of the integral 0 scl Scalar multiplier after each integration 1 axis Axis over which integration ...

Read More

Evaluate a 3-D Laguerre series on the Cartesian product of x, y and z with 4d array of coefficient in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 196 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. If the coefficient array c has fewer than three 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 + y.shape + z.shape. Syntax numpy.polynomial.laguerre.laggrid3d(x, y, z, c) Parameters x, y, z − The three-dimensional series is evaluated at ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 191 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 194 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 153 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 227 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 179 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 170 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 179 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 166 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
Showing 1521–1530 of 8,549 articles
« Prev 1 151 152 153 154 155 855 Next »
Advertisements