Programming Articles

Page 212 of 2547

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 183 Views

To evaluate a 3-D Hermite series on the Cartesian product of x, y and z, use the hermite.hermgrid3d(x, y, z, c) method in Python. This method returns the values of the three-dimensional polynomial at points in the Cartesian product of x, y, and z coordinates. Syntax numpy.polynomial.hermite.hermgrid3d(x, y, z, c) Parameters The parameters are: x, y, z − The three-dimensional series is evaluated at 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 ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 248 Views

To differentiate a Laguerre series, use the laguerre.lagder() method in Python. The method returns the Laguerre series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl. The argument c is an array of coefficients from low to high degree along each axis, e.g., [1, 2, 3] represents the series 1*L_0 + 2*L_1 + 3*L_2 while [[1, 2], [1, 2]] represents 1*L_0(x)*L_0(y) + 1*L_1(x)*L_0(y) + 2*L_0(x)*L_1(y) + 2*L_1(x)*L_1(y) if axis=0 is x and axis=1 is y. Parameters The lagder() method accepts the following parameters ? c − An array of ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 198 Views

To differentiate a Hermite series, use the hermite.hermder() method in Python. The method allows you to differentiate Hermite series coefficients and multiply each differentiation by a scalar value. 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 taken, must be non-negative (Default: 1) scl − Scalar multiplier. Each differentiation is multiplied by this value, resulting in multiplication by scl**m (Default: 1) axis − Axis over which ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 202 Views

To evaluate a 2D Laguerre series at points (x, y), use the polynomial.laguerre.lagval2d() method in Python NumPy. The method returns the values of the two-dimensional polynomial at points formed with pairs of corresponding values from x and y. Syntax numpy.polynomial.laguerre.lagval2d(x, y, c) Parameters The function takes three 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 left unchanged ...

Read More

Generate a Vandermonde matrix of the Chebyshev polynomial in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 288 Views

To generate a Vandermonde matrix of the Chebyshev polynomial, use the chebyshev.chebvander() function in NumPy. The method returns the Vandermonde matrix where each column represents a different degree of the Chebyshev polynomial. The shape of the returned matrix is x.shape + (deg + 1, ), where the last index corresponds to the degree of the Chebyshev polynomial. The function takes two parameters: x is an array of points (converted to float64 or complex128), and deg is the degree of the resulting matrix. Syntax numpy.polynomial.chebyshev.chebvander(x, deg) Parameters x: Array of points. The dtype is ...

Read More

Compute the roots of a Chebyshev series with given complex roots in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 222 Views

To compute the roots of a Chebyshev series, use the chebyshev.chebroots() method in Python NumPy. The method returns an array of the roots of the series. If all the roots are real, then the output is also real, otherwise it is complex. The parameter c is a 1-D array of coefficients. The root estimates are obtained as the eigenvalues of the companion matrix. Roots far from the origin of the complex plane may have large errors due to the numerical instability of the series for such values. Roots with multiplicity greater than 1 will also show larger errors as ...

Read More

Generate a Chebyshev series with given complex roots in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 268 Views

To generate a Chebyshev series with given complex roots, use the chebyshev.chebfromroots() method in NumPy. The method returns a 1-D array of coefficients. If all roots are real then the output is a real array; if some of the roots are complex, then the output is complex even if all coefficients in the result are real. Syntax numpy.polynomial.chebyshev.chebfromroots(roots) Parameters roots − A sequence containing the roots from which to generate the Chebyshev series. Example with Complex Roots Let's generate a Chebyshev series using complex roots -j and j where j is the ...

Read More

Evaluate a 2-D Hermite series on the Cartesian product of x and y with 1d array of coefficient in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 179 Views

To evaluate a 2-D Hermite series on the Cartesian product of x and y, use the hermite.hermgrid2d(x, y, c) method in Python. This method returns the values of the two-dimensional polynomial at points in the Cartesian product of x and y. Syntax numpy.polynomial.hermite.hermgrid2d(x, y, c) Parameters x, y: The two-dimensional series is evaluated at the points in the Cartesian product of x and y. 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 ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 197 Views

To evaluate a 2-D Hermite series on the Cartesian product of x and y, use the hermite.hermgrid2d(x, y, c) method in Python. The method returns the values of the two-dimensional polynomial at points in the Cartesian product of x and y. Syntax numpy.polynomial.hermite.hermgrid2d(x, y, c) Parameters The parameters are: x, y − The two dimensional series is evaluated at the points in the Cartesian product of x and y. If x or y is a list or tuple, it is first converted to an ndarray, otherwise it is left unchanged and, if ...

Read More

Add one Laguerre series to another in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 210 Views

To add one Laguerre series to another, use the polynomial.laguerre.lagadd() method in Python NumPy. The method returns an array representing the Laguerre series of their sum. The function performs element-wise addition of Laguerre series coefficients. The arguments are sequences of coefficients ordered from lowest order term to highest, i.e., [1, 2, 3] represents the series P_0 + 2*P_1 + 3*P_2. The parameters c1 and c2 are 1-D arrays of Laguerre series coefficients ordered from low to high. Syntax numpy.polynomial.laguerre.lagadd(c1, c2) Parameters: c1, c2 − 1-D arrays of Laguerre series coefficients ordered from low ...

Read More
Showing 2111–2120 of 25,466 articles
« Prev 1 210 211 212 213 214 2547 Next »
Advertisements