Found 10476 Articles for Python

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

AmitDiwan
Updated on 03-Mar-2022 06:44:23

163 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 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. The 1st parameter, x, y, z are the three dimensional series is evaluated at the points in the Cartesian product of x, y, and z. If ... Read More

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

AmitDiwan
Updated on 03-Mar-2022 06:41:38

157 Views

To evaluate a 2-D Laguerre series on the Cartesian product of x and y, use the polynomial.laguerre.laggrid2d() method in Python. The method returns the values of the two dimensional Laguerre series at points in the Cartesian product of x and y.If c has fewer than two dimensions, ones are implicitly appended to its shape to make it 2-D. The shape of the result will be c.shape[2:] + x.shape + y.shape. The 1st parameter, x, y is the two dimensional series is evaluated at the points in the Cartesian product of x and y. If x or y is a list ... 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
Updated on 03-Mar-2022 06:39:23

128 Views

To evaluate a Laguerre series at points x, use the polynomial.laguerre.lagval() method in Python Numpy. The 1st parameter is x. If x is a list or tuple, it is converted to an ndarray, otherwise it is left unchanged and treated as a scalar. In either case, x or its elements must support addition and multiplication with themselves and with the elements of c.The 2nd parameter, C, an array of coefficients ordered so that the coefficients for terms of degree n are contained in c[n]. If c is multidimensional the remaining indices enumerate multiple polynomials. In the two dimensional case the ... Read More

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

AmitDiwan
Updated on 03-Mar-2022 06:37:18

165 Views

To evaluate a Laguerre series at points x, use the polynomial.laguerre.lagval() method in Python Numpy. The 1st parameter is x. If x is a list or tuple, it is converted to an ndarray, otherwise it is left unchanged and treated as a scalar. In either case, x or its elements must support addition and multiplication with themselves and with the elements of c.The 2nd parameter, C, an array of coefficients ordered so that the coefficients for terms of degree n are contained in c[n]. If c is multidimensional the remaining indices enumerate multiple polynomials. In the two dimensional case the ... Read More

Evaluate a Laguerre series at points x in Python

AmitDiwan
Updated on 03-Mar-2022 06:35:06

130 Views

To evaluate a Laguerre series at points x, use the polynomial.laguerre.lagval() method in Python Numpy. The 1st parameter is x. If x is a list or tuple, it is converted to an ndarray, otherwise it is left unchanged and treated as a scalar. In either case, x or its elements must support addition and multiplication with themselves and with the elements of c.The 2nd parameter, C, an array of coefficients ordered so that the coefficients for terms of degree n are contained in c[n]. If c is multidimensional the remaining indices enumerate multiple polynomials. In the two dimensional case the ... Read More

Raise a Laguerre series to a power in Python

AmitDiwan
Updated on 03-Mar-2022 06:33:02

137 Views

To raise a Laguerre series to a power, use the polynomial.laguerre.lagpow() method in Python 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. i.e., [1, 2, 3] is the series P_0 + 2*P_1 + 3*P_2.Returns the Laguerre series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1, 2, 3] is the series P_0 + 2*P_1 + 3*P_2. The parameter, c is a 1-D array of Laguerre series coefficients ordered from low ... Read More

Divide one Laguerre series by another in Python

AmitDiwan
Updated on 03-Mar-2022 06:30:35

117 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. Returns the quotient-with-remainder of two Laguerre series c1 / c2. The arguments are sequences of coefficients from lowest order “term” to highest, e.g., [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.StepsAt first, import the required library −import numpy as np from numpy.polynomial import laguerre as LCreate 1-D arrays of Laguerre ... Read More

Multiply one Laguerre series to another in Python

AmitDiwan
Updated on 03-Mar-2022 06:27:24

139 Views

To multiply one Laguerre series to another, use the polynomial.laguerre.lagmul() method in Python Numpy. Returns the multiplication of two Laguerre series c1 * c2. The sequences of coefficients are 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.StepsAt first, import the required library −import numpy as np from numpy.polynomial import laguerre as LCreate 1-D arrays of Laguerre series coefficients −c1 = np.array([1, 2, 3]) c2 = np.array([3, 2, 1])Display the arrays of coefficients −print("Array1...", ... Read More

Multiply a Laguerre series by an independent variable in Python

AmitDiwan
Updated on 03-Mar-2022 06:25:28

112 Views

To multiply a Laguerre series by an independent variable, use the polynomial.laguerre.lagmulx() method in Python. Multiply 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.StepsAt first, import the required library −import numpy as np from numpy.polynomial import laguerre as LCreate an array −c = np.array([1, 2, 3])Display the array −print("Our Array...", c)Check the Dimensions −print("Dimensions of our Array...", c.ndim)Get the Datatype −print("Datatype of our Array object...", c.dtype)Get the Shape −print("Shape of our Array object...", c.shape)To multiply a Laguerre series by an ... Read More

Subtract one Laguerre series from another in Python

AmitDiwan
Updated on 03-Mar-2022 06:23:27

126 Views

To subtract one Laguerre series from another, use the polynomial.laguerre.lagsub() method in Python Numpy. The method returns an array of Laguerre series coefficients representing their difference. Returns the difference of two Laguerre series c1 - c2. The sequences of coefficients are 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.StepsAt first, import the required library −import numpy as np from numpy.polynomial import laguerre as LCreate 1-D arrays of Laguerre series coefficients −c1 = np.array([1, ... Read More

Advertisements