Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Programming Articles
Page 202 of 2547
Differentiate a Laguerre series in Python
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 MoreEvaluate a 3-D Laguerre series on the Cartesian product of x, y and z with 2d array of coefficient in Python
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 MoreEvaluate a 2-D Laguerre series on the Cartesian product of x and y with 3d array of coefficient in Python
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 MoreEvaluate a Laguerre series at points x and the shape of the coefficient array extended for each dimension of x in Python
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 MoreEvaluate a Laguerre series at points x when coefficients are multi-dimensional in Python
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 MoreEvaluate a Laguerre series at points x in Python
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 MoreRaise a Laguerre series to a power in Python
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 MoreDivide one Laguerre series by another in Python
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 MoreMultiply one Laguerre series to another in Python
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 MoreMultiply a Laguerre series by an independent variable in Python
To multiply a Laguerre series by an independent variable, use the polynomial.laguerre.lagmulx() method in Python. This function multiplies the Laguerre series c by x, where x is the independent variable. The parameter c is a 1-D array of Laguerre series coefficients ordered from low to high. Syntax numpy.polynomial.laguerre.lagmulx(c) Parameters: c - 1-D array of Laguerre series coefficients ordered from low to high Returns: Array representing the Laguerre series multiplied by x Example Let's create a Laguerre series with coefficients [1, 2, 3] and multiply it by the independent variable ? ...
Read More