Python Articles

Page 228 of 855

Differentiate a Laguerre series with multidimensional coefficients in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 178 Views

To differentiate a Laguerre series with multidimensional coefficients, use the laguerre.lagder() method in Python. The method returns the Laguerre series coefficients differentiated m times along a specified axis. At each iteration, the result is multiplied by a scaling factor. The coefficient array c represents Laguerre polynomial terms where [1, 2, 3] represents 1*L_0 + 2*L_1 + 3*L_2. For multidimensional arrays like [[1, 2], [1, 2]], it 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 − Array of ...

Read More

Differentiate a Laguerre series in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 179 Views

To differentiate a Laguerre series, use the laguerre.lagder() method in Python. The method returns the Laguerre series coefficients differentiated m times along the specified 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. For example, [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. Syntax laguerre.lagder(c, m=1, scl=1, axis=0) Parameters c: Array ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 240 Views

To evaluate a 3-D Laguerre series on the Cartesian product of x, y and z, use the polynomial.laguerre.laggrid3d() method in Python. The method returns the values of the three-dimensional Laguerre series at points in the Cartesian product of x, y and z. If the coefficient array c has fewer than three 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 + y.shape + z.shape. Parameters The method accepts the following parameters: x, y, z − Three-dimensional series is evaluated at the points ...

Read More

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

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 249 Views

To evaluate a 2-D Laguerre series on the Cartesian product of x and y with a 3D array of coefficients, use the numpy.polynomial.laguerre.laggrid2d() method in Python. This method returns the values of the two-dimensional Laguerre series at points in the Cartesian product of x and y. The coefficient array c should be ordered so that the coefficient of the term of multi-degree i, j is contained in c[i, j]. When c has more than two dimensions, the additional indices enumerate multiple sets of coefficients, allowing for batch evaluation. Syntax numpy.polynomial.laguerre.laggrid2d(x, y, c) Parameters ...

Read More

Evaluate a Laguerre series at points x and the shape of the coefficient array extended for each dimension of x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 226 Views

To evaluate a Laguerre series at points x, use the polynomial.laguerre.lagval() method in Python NumPy. This function allows you to evaluate Laguerre polynomials with given coefficients at specified points, with control over how multidimensional coefficient arrays are handled. Syntax numpy.polynomial.laguerre.lagval(x, c, tensor=True) Parameters The function accepts three parameters: x: Points at which to evaluate the series. Can be scalar, list, or array c: Array of coefficients ordered so that coefficients for terms of degree n are in c[n] tensor: Boolean controlling evaluation behavior for multidimensional arrays (default: True) Understanding the ...

Read More

Evaluate a Laguerre series at points x when coefficients are multi-dimensional in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 197 Views

To evaluate a Laguerre series at points x with multi-dimensional coefficients, use the polynomial.laguerre.lagval() method in Python NumPy. This method allows evaluation of multiple polynomials simultaneously when coefficients are arranged in a multi-dimensional array. Parameters The lagval() method takes three main parameters: x: The evaluation points. Can be a scalar, list, or array c: Array of coefficients where coefficients for degree n are in c[n]. For multi-dimensional arrays, additional indices represent multiple polynomials tensor: Boolean parameter (default True) controlling how x and c interact during evaluation Basic Example with Multi-dimensional Coefficients Let's create ...

Read More

Evaluate a Laguerre series at points x in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 178 Views

To evaluate a Laguerre series at points x, use the polynomial.laguerre.lagval() method in NumPy. This function takes coefficients and evaluation points to compute Laguerre polynomial values. Syntax numpy.polynomial.laguerre.lagval(x, c, tensor=True) Parameters x: Points where the series is evaluated. Can be a scalar, list, or array. 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), extends coefficient array shape for broadcasting. If False, x is broadcast over columns of c. Basic Example ...

Read More

Raise a Laguerre series to a power in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 189 Views

To raise a Laguerre series to a power, use the polynomial.laguerre.lagpow() method in NumPy. The method returns the Laguerre 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.laguerre.lagpow(c, pow, maxpower=16) Parameters The function accepts the following parameters ? c − 1-D array of Laguerre series coefficients ordered from low to high pow − Power to which the series will be raised maxpower − Maximum power allowed ...

Read More

Divide one Laguerre series by another in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 154 Views

To divide one Laguerre series by another, use the polynomial.laguerre.lagdiv() method in Python NumPy. The method returns a [quo, rem] array of Laguerre series coefficients representing the quotient and remainder. The function performs polynomial division where the arguments are sequences of coefficients from lowest order "term" to highest. For example, [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.lagdiv(c1, c2) Parameters: c1, c2 − 1-D arrays of Laguerre series coefficients ordered from ...

Read More

Multiply one Laguerre series to another in Python

AmitDiwan
AmitDiwan
Updated on 26-Mar-2026 192 Views

To multiply one Laguerre series to another, use the polynomial.laguerre.lagmul() method in Python NumPy. This function returns the multiplication of two Laguerre series c1 * c2. The sequences of coefficients are ordered from lowest order term to highest, i.e., [1, 2, 3] represents the series P_0 + 2*P_1 + 3*P_2. Syntax numpy.polynomial.laguerre.lagmul(c1, c2) Parameters The parameters c1 and c2 are 1-D arrays of Laguerre series coefficients ordered from low to high degree. Example Let's multiply two Laguerre series step by step ? import numpy as np from numpy.polynomial import laguerre ...

Read More
Showing 2271–2280 of 8,546 articles
« Prev 1 226 227 228 229 230 855 Next »
Advertisements