Python Articles

Page 132 of 855

Integrate a Laguerre series and multiply the result by a scalar before the integration constant is added in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 184 Views

To integrate a Laguerre series and multiply by a scalar, use the numpy.polynomial.laguerre.lagint() method in Python. This method integrates the Laguerre series coefficients and applies a scaling factor before adding the integration constant. Syntax numpy.polynomial.laguerre.lagint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The key parameters are ? c − Array of Laguerre series coefficients m − Order of integration (default: 1) k − Integration constant(s) (default: []) lbnd − Lower bound of integration (default: 0) scl − Scaling factor applied after each integration (default: 1) axis − Axis over which to integrate (default: ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 215 Views

To integrate a Laguerre series and set the lower bound of the integral, use the laguerre.lagint() method in Python. This method returns the Laguerre series coefficients integrated m times from the specified lower bound lbnd. At each iteration, the resulting series is multiplied by a scaling factor and an integration constant is added. Syntax numpy.polynomial.laguerre.lagint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The key parameters for the lagint() method are ? c ? Array of Laguerre series coefficients m ? Order of integration (default: 1) k ? Integration constant(s) (default: []) lbnd ? ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 190 Views

To integrate a Hermite series, use the hermite.hermint() method in Python. This function integrates a Hermite polynomial series and allows you to specify the order of integration. Syntax numpy.polynomial.hermite.hermint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The function 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 lbnd ? Lower bound of the integral (Default: 0) scl ? Scalar ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 178 Views

To generate a pseudo Vandermonde matrix of the Laguerre polynomial, use the laguerre.lagvander2d() method in Python NumPy. The method returns a 2D pseudo-Vandermonde matrix where each element is evaluated using Laguerre polynomial basis functions at the given complex points. The method takes arrays of x and y coordinates and degree specifications to construct the matrix. The shape of the returned matrix is x.shape + (x_deg + 1) * (y_deg + 1), where the dtype matches the input arrays (complex128 for complex inputs). Syntax laguerre.lagvander2d(x, y, deg) Parameters The parameters are ? ...

Read More

Differentiate a Hermite series, set the derivatives and multiply each differentiation by a scalar in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 220 Views

To differentiate a Hermite series, use the hermite.hermder() method in Python. This function allows you to compute derivatives of Hermite polynomial series with customizable scaling factors. Syntax numpy.polynomial.hermite.hermder(c, m=1, scl=1, axis=0) Parameters c − Array of Hermite series coefficients. If multidimensional, 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 scl, resulting in final multiplication by scl**m (Default: 1) axis − Axis over which the derivative is taken (Default: 0) Basic Differentiation Let's ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 209 Views

To differentiate a Hermite series with multidimensional coefficients, use the hermite.hermder() method in Python. This method allows differentiation along specific axes when working with multidimensional coefficient arrays. Parameters The hermite.hermder() method accepts the following parameters − c − Array of Hermite 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) Example Let's create a ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 185 Views

To differentiate a Hermite series with multidimensional coefficients, use the hermite.hermder() method in Python. This function allows you to compute derivatives along specific axes of multidimensional coefficient arrays. Syntax hermite.hermder(c, m=1, scl=1, axis=0) Parameters The hermder() method accepts the following parameters ? c − Array of Hermite series coefficients. For multidimensional arrays, different axes correspond to different variables m − Number of derivatives to take (default: 1). Must be non-negative scl − Scalar multiplier for each differentiation (default: 1). Final result is multiplied by scl**m axis − Axis along which the derivative ...

Read More

Integrate a Laguerre series and set the Integration constant in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 216 Views

To integrate a Laguerre series, use the laguerre.lagint() method in Python. The method returns the Laguerre series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. Syntax numpy.polynomial.laguerre.lagint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The function accepts the following parameters − c − Array of Laguerre series coefficients. If multidimensional, different axes correspond to different variables m − Order of integration, must be positive (Default: 1) k − Integration constant(s). If k == [] (default), ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 215 Views

To integrate a Laguerre series, use the laguerre.lagint() method in Python. The method returns the Laguerre series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. Syntax numpy.polynomial.laguerre.lagint(c, m=1, k=[], lbnd=0, scl=1, axis=0) Parameters The function accepts the following parameters ? c − Array of Laguerre series coefficients. If c is multidimensional, different axes correspond to different variables m − Order of integration, must be positive (Default: 1) k − Integration constant(s). If k == ...

Read More

Compute the condition number of a matrix in linear algebra in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 2K+ Views

The condition number of a matrix measures how sensitive the solution of a linear system is to changes in the input. A low condition number indicates a well-conditioned matrix, while a high condition number suggests an ill-conditioned matrix. In Python, we use numpy.linalg.cond() to compute this value. Syntax numpy.linalg.cond(x, p=None) Parameters x: The matrix whose condition number is sought. p: Order of the norm used in computation (None, 1, -1, 2, -2, 'fro'). Basic Example Let's compute the condition number of a 3x3 matrix ? import numpy as np from ...

Read More
Showing 1311–1320 of 8,549 articles
« Prev 1 130 131 132 133 134 855 Next »
Advertisements