Found 1204 Articles for Numpy

Evaluate a 2D Laguerre series at points (x,y) with 3D array of coefficients in Python

AmitDiwan
Updated on 04-Mar-2022 07:00:42

84 Views

To evaluate a 2D Laguerre series at points x, 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.The 1st parameter is 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 and if it isn’t an ndarray it is treated as a scalar.The 2nd parameter, C, is ... Read More

Generate a Vandermonde matrix of the Hermite polynomial with float array of points in Python

AmitDiwan
Updated on 04-Mar-2022 06:54:59

79 Views

To generate a Vandermonde matrix of the Hermite polynomial, use the chebyshev.hermvander() in Python Numpy. The method returns the pseudo-Vandermonde matrix. The shape of the returned matrix is x.shape + (deg + 1, ), where The last index is the degree of the corresponding Hermite polynomial. The dtype will be the same as the converted x.The parameter, x returns an Array of points. The dtype is converted to float64 or complex128 depending on whether any of the elements are complex. If x is scalar it is converted to a 1-D array. The parameter, deg is the degree of the resulting ... Read More

Generate a Vandermonde matrix of the Hermite polynomial in Python

AmitDiwan
Updated on 04-Mar-2022 06:50:01

182 Views

To generate a Vandermonde matrix of the Hermite polynomial, use the hermite.hermvander() in Python Numpy. The method returns the pseudo-Vandermonde matrix. The shape of the returned matrix is x.shape + (deg + 1, ), where The last index is the degree of the corresponding Hermite polynomial. The dtype will be the same as the converted x.The parameter, x returns an Array of points. The dtype is converted to float64 or complex128 depending on whether any of the elements are complex. If x is scalar it is converted to a 1-D array. The parameter, deg is the degree of the resulting ... Read More

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

AmitDiwan
Updated on 04-Mar-2022 06:48:09

88 Views

To compute the roots of a Hermite series., use the hermite.hermroots() method in Python Numpy. The method returns an array of the roots of the series. If all the roots are real, then out 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 the value of ... Read More

Compute the roots of a Hermite series in Python

AmitDiwan
Updated on 04-Mar-2022 06:46:12

103 Views

To compute the roots of a Hermite series., use the hermite.hermroots() method in Python Numpy. The method returns an Array of the roots of the series. If all the roots are real, then out 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 the value of ... Read More

Evaluate a Laguerre series at multidimensional array of points x in Python

AmitDiwan
Updated on 04-Mar-2022 06:44:38

83 Views

To evaluate a Laguerre series at multi-dimensional array of 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 ... Read More

Evaluate a Laguerre series at array of points x in Python

AmitDiwan
Updated on 04-Mar-2022 06:42:54

70 Views

To evaluate a Laguerre series at array of 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 ... Read More

Evaluate a Laguerre series at points x broadcast over the columns of the coefficient in Python

AmitDiwan
Updated on 04-Mar-2022 06:41:07

63 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

Integrate a Laguerre series over axis 1 in Python

AmitDiwan
Updated on 04-Mar-2022 06:39:27

97 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. The scaling factor is for use in a linear change of variable. The 1st parameter, c is an array of Laguerre series coefficients. If c is multidimensional the different axis correspond to different variables with the degree in each axis given by the corresponding index.The 2nd parameter, m is an order of integration, must be positive. (Default: ... Read More

Integrate a Laguerre series over specific axis in Python

AmitDiwan
Updated on 04-Mar-2022 06:38:05

89 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. The scaling factor is for use in a linear change of variable.The 1st parameter, c is an array of Laguerre series coefficients. If c is multidimensional the different axis correspond to different variables with the degree in each axis given by the corresponding index. The 2nd parameter, m is an order of integration, must be positive. (Default: ... Read More

Advertisements