Programming Articles

Page 190 of 2547

Integrate a Hermite_e series and set the Integration constant in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 216 Views

To integrate a Hermite_e series, use the hermite_e.hermeint() method in Python. This function integrates a Hermite_e polynomial and allows you to set integration constants. Syntax 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 constant(s). If k == [], all constants are zero (default: []) lbnd − Lower bound of integration (default: 0) scl − Scalar multiplier applied after each integration (default: 1) axis − Axis over which integration is performed (default: 0) Basic Integration ...

Read More

Integrate a Hermite_e series and set the order of integration in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 186 Views

To integrate a Hermite_e series, use the hermite_e.hermeint() method in Python. This function performs polynomial integration on Hermite_e series coefficients with customizable integration order and constants. Syntax numpy.polynomial.hermite_e.hermeint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The function accepts the following parameters: c - Array of Hermite_e series coefficients m - Order of integration (must be positive, default: 1) k - Integration constant(s) (default: []) lbnd - Lower bound of the integral (default: 0) scl - Scalar multiplier applied after each integration (default: 1) axis - Axis over which the integral is taken (default: ...

Read More

Remove small trailing coefficients from Legendre polynomial in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 258 Views

To remove small trailing coefficients from Legendre polynomial, use the legendre.legtrim() method in Python NumPy. The method returns a 1-d array with trailing zeros removed. If the resulting series would be empty, a series containing a single zero is returned. The small means "small in absolute value" and is controlled by the parameter tol. The trailing means highest order coefficient(s), e.g., in [0, 1, 1, 0, 0] (which represents 0 + x + x**2 + 0*x**3 + 0*x**4) both the 3rd and 4th order coefficients would be trimmed. Syntax numpy.polynomial.legendre.legtrim(c, tol=0) Parameters ...

Read More

Get the Least squares fit of Legendre series to data in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 764 Views

To get the least squares fit of Legendre series to data, use the legendre.legfit() method in NumPy. The method returns the Legendre coefficients ordered from low to high. If y was 2-D, the coefficients for the data in column k of y are in column k. Syntax numpy.polynomial.legendre.legfit(x, y, deg, rcond=None, full=False, w=None) Parameters x − The x-coordinates of the M sample (data) points (x[i], y[i]). y − The y-coordinates of the sample points. Several sets of sample points sharing the same x-coordinates can be (independently) fit with one call to polyfit by ...

Read More

Integrate a Hermite_e series over specific axis in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 267 Views

To integrate a Hermite_e series over a specific axis, use the hermite_e.hermeint() method in Python. This function integrates Hermite_e series coefficients along the specified axis while preserving other dimensions. Syntax numpy.polynomial.hermite_e.hermeint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The function accepts several parameters to control the integration: c: Array of Hermite_e series coefficients. For multidimensional arrays, different axes correspond to different variables m: Order of integration (default: 1), must be positive k: Integration constants (default: []). All constants are zero by default lbnd: Lower bound of the integral (default: 0) scl: Scalar multiplier ...

Read More

Integrate a Hermite_e series and set the lower bound of the integral in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 207 Views

To integrate a Hermite_e series and set a custom lower bound, use the hermite_e.hermeint() method in NumPy. This function performs polynomial integration on Hermite_e series coefficients with flexible integration parameters. Syntax numpy.polynomial.hermite_e.hermeint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The function accepts the following parameters ? c ? Array of Hermite_e series coefficients m ? Order of integration (must be positive, default: 1) k ? Integration constants (default: []) lbnd ? Lower bound of the integral (default: 0) scl ? Scalar multiplier applied after each integration (default: 1) axis ? Axis over which ...

Read More

Evaluate a Legendre series at tuple of points x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 226 Views

To evaluate a Legendre series at tuple of points x, use the polynomial.legendre.legval() method in Python NumPy. This function evaluates a Legendre polynomial series at given points using coefficients. 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. c: Array of coefficients ordered so that coefficients for terms of degree n are contained in c[n]. For multidimensional arrays, remaining indices enumerate multiple polynomials. tensor: If True (default), the coefficient array shape is extended ...

Read More

Differentiate a Hermite_e series and multiply each differentiation by a scalar in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 203 Views

To differentiate a Hermite_e series and multiply each differentiation by a scalar, use the hermite_e.hermeder() method in Python. This function computes derivatives of Hermite_e series with optional scalar multiplication. Syntax numpy.polynomial.hermite_e.hermeder(c, m=1, scl=1, axis=-1) Parameters The function takes the following parameters: c: Array of Hermite_e 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. Each differentiation is multiplied by this value (Default: 1) axis: Axis over which the derivative is taken (Default: -1) Example ...

Read More

Differentiate a Legendre series with multidimensional coefficients over axis 1 in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 234 Views

To differentiate a Legendre series with multidimensional coefficients, use the polynomial.legendre.legder() method in Python. This method 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 for each differentiation. Final result is multiplied by scl**m (Default: 1) axis: Axis over which the derivative is taken (Default: 0) Example: ...

Read More

Differentiate a Legendre series with multidimensional coefficients over specific axis in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 220 Views

To differentiate a Legendre series with multidimensional coefficients, use the numpy.polynomial.legendre.legder() method. This function returns the Legendre series coefficients differentiated m times along a 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 (default: 1). Must be non-negative scl − Scalar multiplier for each differentiation (default: 1). Final result is multiplied by scl**m axis − Axis over which the derivative is taken (default: 0) ...

Read More
Showing 1891–1900 of 25,466 articles
« Prev 1 188 189 190 191 192 2547 Next »
Advertisements