Numpy Articles

Page 14 of 81

Evaluate a Hermite_e series at tuple of points x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 177 Views

To evaluate a Hermite_e series at points x, use the hermite_e.hermeval() method in Python NumPy. The method takes coefficients and evaluation points to compute the polynomial value at each point. Syntax numpy.polynomial.hermite_e.hermeval(x, c, tensor=True) Parameters The hermeval() method accepts the following parameters − x − Array of points to evaluate. If x is a list or tuple, it is converted to an ndarray. Elements must support addition and multiplication with coefficients. c − Array of coefficients ordered so that coefficients for terms of degree n are contained in c[n]. If multidimensional, remaining ...

Read More

Differentiate a Legendre series in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 233 Views

To differentiate a Legendre series in Python, use the legendre.legder() method from NumPy's polynomial module. This function returns the Legendre series coefficients differentiated m times along the specified axis. Syntax numpy.polynomial.legendre.legder(c, m=1, scl=1, axis=0) Parameters The function accepts the following parameters ? c ? Array of Legendre series coefficients. For multidimensional arrays, different axes correspond to different variables m ? Number of derivatives taken (must be non-negative, default: 1) scl ? Scalar multiplier applied at each differentiation step (default: 1) axis ? Axis over which the derivative is taken (default: 0) ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 224 Views

To evaluate a 3D Legendre series on the Cartesian product of x, y and z, use the polynomial.legendre.leggrid3d() method in Python NumPy. The method returns the values of the three-dimensional Legendre series at points in the Cartesian product of x, y, and z. If the coefficient array has fewer than three dimensions, ones are implicitly appended to its shape to make it 3D. Syntax numpy.polynomial.legendre.leggrid3d(x, y, z, c) Parameters The method accepts the following parameters ? x, y, z − The three-dimensional series is evaluated at points in the Cartesian product of ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 196 Views

To evaluate a 3-D Hermite_e series on the Cartesian product of x, y and z, use the hermite_e.hermegrid3d(x, y, z, c) method in Python. The method returns the values of the three-dimensional polynomial at points in the Cartesian product of x, y and z. The three dimensional series is evaluated at the points in the Cartesian product of x, y, and z. If x, y, or z 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. Parameters ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 178 Views

To evaluate a 2D Legendre series at points (x, y) with a 3D coefficient array, use the numpy.polynomial.legendre.legval2d() method. This method computes the values of a two-dimensional Legendre series at specified coordinate pairs. Syntax The basic syntax is ? numpy.polynomial.legendre.legval2d(x, y, c) Parameters The function accepts the following parameters ? x, y ? Coordinate arrays where the series is evaluated. Must have the same shape. c ? Array of coefficients where c[i, j] contains the coefficient for the term of multi-degree (i, j). For 3D arrays, additional indices enumerate multiple coefficient ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 348 Views

To evaluate a 2D Legendre series at points (x, y), use the polynomial.legendre.legval2d() method in NumPy. The method returns the values of the two dimensional Legendre series at points formed from pairs of corresponding values from x and y. Syntax numpy.polynomial.legendre.legval2d(x, y, c) Parameters The function accepts the following parameters: x, y − 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 ...

Read More

Evaluate a Legendre series at list of points x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 212 Views

To evaluate a Legendre series at specific points, use the polynomial.legendre.legval() method in NumPy. This function allows you to compute Legendre polynomial values efficiently at single points or arrays of points. Syntax numpy.polynomial.legendre.legval(x, c, tensor=True) Parameters x: Points at which to evaluate the Legendre series. Can be a scalar, list, or array. c: Array of coefficients where c[n] contains the coefficient for the degree-n term. tensor: If True (default), evaluates every coefficient column for every element of x. If False, broadcasts x over coefficient columns. Example Let's evaluate a Legendre ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 216 Views

To evaluate a 3D Legendre series on the Cartesian product of x, y and z, use the polynomial.legendre.leggrid3d() method in Python NumPy. This method evaluates a three-dimensional Legendre series at points in the Cartesian product of x, y, and z coordinates. Syntax numpy.polynomial.legendre.leggrid3d(x, y, z, c) Parameters x, y, z: The coordinates where the series is evaluated. The three-dimensional series is evaluated at points in the Cartesian product of x, y and z. If any parameter is a list or tuple, it is converted to an ndarray. c: Array of coefficients ordered so ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 251 Views

To evaluate a 3D Legendre series on the Cartesian product of x, y and z, use the polynomial.legendre.leggrid3d() method in Python NumPy. The method returns the values of the three-dimensional Legendre series at points in the Cartesian product of x, y, and z coordinates. Syntax numpy.polynomial.legendre.leggrid3d(x, y, z, c) Parameters x, y, z: The three-dimensional series is evaluated at the points in the Cartesian product of x, y and z. If x, y, or z is a list or tuple, it is first converted to an ndarray, otherwise it is left unchanged and, if ...

Read More

Integrate a Hermite_e series in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 194 Views

The Hermite_e series integration can be performed using NumPy's hermite_e.hermeint() method. This method integrates a Hermite_e polynomial series and returns the coefficients of the integrated series. Syntax The hermite_e.hermeint() method accepts several parameters ? numpy.polynomial.hermite_e.hermeint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters c ? Array of Hermite_e series coefficients m ? Order of integration (default: 1) k ? Integration constants (default: []) lbnd ? Lower bound of integral (default: 0) scl ? Scalar multiplier (default: 1) axis ? Axis over which integration is performed (default: 0) Basic Integration Example Let's ...

Read More
Showing 131–140 of 802 articles
« Prev 1 12 13 14 15 16 81 Next »
Advertisements