Programming Articles

Page 200 of 2547

Generate a Pseudo Vandermonde matrix of the Hermite_e polynomial with complex array of points coordinates in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 189 Views

To generate a pseudo Vandermonde matrix of the Hermite_e polynomial with complex coordinates, use the hermite_e.hermevander2d() function in NumPy. This function returns a pseudo-Vandermonde matrix where the parameters x and y are arrays of point coordinates with the same shape. The data types are automatically converted to float64 or complex128 depending on whether any elements are complex. Syntax numpy.polynomial.hermite_e.hermevander2d(x, y, deg) Parameters The function accepts the following parameters: x, y − Arrays of point coordinates, all of the same shape deg − List of maximum degrees in the form [x_deg, y_deg] ...

Read More

Evaluate a 2D Legendre series at points (x, y) with 1D array of coefficient in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 183 Views

To evaluate a 2D Legendre series at points (x, y), use the polynomial.legendre.legval2d() method in NumPy. This method returns the values of the two-dimensional Legendre series at points formed from pairs of corresponding values from x and y arrays. Syntax numpy.polynomial.legendre.legval2d(x, y, c) Parameters The function takes the following parameters: x, y: The two dimensional series is evaluated at points (x, y). Both must have the same shape. If x or y is a list or tuple, it is converted to an ndarray. c: Array of coefficients ordered so that the coefficient ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 253 Views

To evaluate a 3D Legendre series at points (x, y, z) use the polynomial.legendre.legval3d() 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 the coefficient array 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 first parameter consists of x, y, z coordinates where x, y, and z must have the same shape. The second parameter is the coefficient array c, ordered ...

Read More

Evaluate a 3D Legendre series at points (x, y, z) in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 198 Views

To evaluate a 3D Legendre series at points (x, y, z), use the polynomial.legendre.legval3d() 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 the coefficient array 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 coordinates x, y, and z must have the same shape, and if any are lists or tuples, they are first converted to ndarrays. Syntax ...

Read More

Evaluate a Legendre series at array of points x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 338 Views

To evaluate a Legendre series at an array of points x, use the polynomial.legendre.legval() method in Python NumPy. This method takes coefficients of a Legendre polynomial and evaluates it at specified points. Syntax numpy.polynomial.legendre.legval(x, c, tensor=True) Parameters x: Array of points at which to evaluate the series. If x is a list or tuple, it is converted to an ndarray. The elements must support addition and multiplication operations. c: Array of coefficients ordered so that coefficients for terms of degree n are in c[n]. For multidimensional arrays, remaining indices enumerate multiple polynomials. ...

Read More

Evaluate a Legendre series at points x broadcast over the columns of the coefficient in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 180 Views

To evaluate a Legendre series at points x, use the polynomial.legendre.legval() method in Python NumPy. This function broadcasts x over the columns of the coefficient array, making it useful for evaluating multiple polynomials simultaneously. Syntax numpy.polynomial.legendre.legval(x, c, tensor=True) Parameters x: Array of points at which to evaluate the series. If x is a list or tuple, it is converted to an ndarray, otherwise treated as a scalar. c: Array of coefficients ordered so that coefficients for terms of degree n are in c[n]. If multidimensional, remaining indices enumerate multiple polynomials stored in columns. ...

Read More

Evaluate a Legendre series at points x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 219 Views

To evaluate a Legendre series at specific points x in Python, use the polynomial.legendre.legval() method from NumPy. This function computes the value of a Legendre polynomial series at given points using the provided coefficients. Syntax numpy.polynomial.legendre.legval(x, c, tensor=True) Parameters x: Points at which to evaluate the Legendre series. Can be a scalar, list, tuple, or ndarray. c: Array of coefficients ordered so that coefficients for terms of degree n are in c[n]. For multidimensional arrays, remaining indices enumerate multiple polynomials. tensor: If True (default), the coefficient array shape is extended for broadcasting. ...

Read More

Raise a Legendre series to a power in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 188 Views

To raise a Legendre series to a power, use the polynomial.legendre.legpow() method in Python NumPy. The method returns the Legendre series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. For example, [1, 2, 3] represents the series P₀ + 2*P₁ + 3*P₂. Syntax numpy.polynomial.legendre.legpow(c, pow, maxpower=16) Parameters The function accepts the following parameters ? c ? 1-D array of Legendre series coefficients ordered from low to high pow ? Power to which the series will be raised maxpower ? Maximum power ...

Read More

Integrate a Hermite series in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 319 Views

To integrate a Hermite series in Python, use the hermite.hermint() method from NumPy. This function performs polynomial integration on Hermite series coefficients and returns the integrated coefficients. Syntax numpy.polynomial.hermite.hermint(c, m=1, k=[], lbnd=0, scl=1, axis=0) 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 lbnd − Lower bound of the integral (default: 0) scl − Scalar multiplier applied after each integration (default: 1) axis ...

Read More

Generate a Pseudo Vandermonde matrix of the Laguerre polynomial and x, y, z floating array of points in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 178 Views

To generate a pseudo Vandermonde matrix of the Laguerre polynomial with x, y, z sample points, use the laguerre.lagvander3d() in Python NumPy. The parameters x, y, z are arrays of points with the same shape. The parameter deg is a list of maximum degrees of the form [x_deg, y_deg, z_deg]. Syntax numpy.polynomial.laguerre.lagvander3d(x, y, z, deg) Parameters The function accepts the following parameters ? x, y, z − Arrays of point coordinates, all of the same shape deg − List of maximum degrees [x_deg, y_deg, z_deg] Example Let's create arrays ...

Read More
Showing 1991–2000 of 25,466 articles
« Prev 1 198 199 200 201 202 2547 Next »
Advertisements