AmitDiwan has Published 10744 Articles

Return the cumulative product of array elements over a given axis treating NaNs as one in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:24:34

165 Views

To return the cumulative product of array elements over a given axis treating NaNs as one, use the nancumprod() method. The cumulative product does not change when NaNs are encountered and leading NaNs are replaced by ones. Ones are returned for slices that are all-NaN or empty. The method returns ... Read More

Integrate a Laguerre series in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:20:21

162 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 ... Read More

Generate a Chebyshev series with given roots in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:18:55

205 Views

To generate a Chebyshev series with given roots, use the chebyshev.chebfromroots() method in Python Numpy. The method returns 1-D array of coefficients. If all roots are real then out is a real array, if some of the roots are complex, then out is complex even if all the coefficients in ... Read More

Integrate a Chebyshev series and multiply the result by a scalar before the integration constant is added in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:17:28

140 Views

To Integrate a Chebyshev series, use the chebyshev.chebint() method in Python. Returns the Chebyshev 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 1st parameter, c is an array of Chebyshev ... Read More

Evaluate a Laguerre series at points x with multidimensional coefficient array in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:15:28

141 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 ... Read More

Evaluate a Laguerre series at list of points x in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:13:48

176 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 ... Read More

Evaluate a Laguerre series at tuple of points x in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:11:05

122 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 ... Read More

Generate a Pseudo Vandermonde matrix of the Laguerre polynomial and x, y, z complex array of points in Python

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 07:08:28

156 Views

To generate a pseudo Vandermonde matrix of the Laguerre polynomial with x, y, z sample points, use the laguerre.lagvander3d() in Python Numpy. The parameter, x, y, z returns an Array of points. The dtype is converted to float64 or complex128 depending on whether any of the elements are complex. If ... Read More

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

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 06:37:10

130 Views

To evaluate a Legendre series at points x, use the polynomial.legendre.legval() 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 ... Read More

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

AmitDiwan

AmitDiwan

Updated on 02-Mar-2022 06:35:26

132 Views

To evaluate a Legendre series at points x, use the polynomial.legendre.legval() 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 ... Read More

Advertisements