Found 1204 Articles for Numpy

Raise a Hermite_e series to a power in Python

AmitDiwan
Updated on 08-Mar-2022 05:59:01

115 Views

To raise a Hermite_e series to a power, use the polynomial.hermite.hermepow() method in Python Numpy. The method returns Hermite_e series of power. Returns the Hermite_e 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 Hermite_e series coefficients ordered from low to high.The parameter, pow is a Power to which the series will be raised. The parameter, maxpower is the maximum power allowed. This is mainly to limit growth of ... Read More

Differentiate a Legendre series and set the derivatives in Python

AmitDiwan
Updated on 08-Mar-2022 05:56:50

145 Views

To differentiate a Legendre series, use the polynomial.laguerre.legder() method in Python. Returns the Legendre series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl. The 1st parameter, c is an array of Legendre 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 the number of derivatives taken, must be non-negative. (Default: 1). The 3rd parameter, scl is a scalar. Each differentiation is multiplied by scl. The end result is multiplication by scl**m. This is ... Read More

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

AmitDiwan
Updated on 08-Mar-2022 05:57:02

103 Views

To evaluate a Legendre series at multi-dimensional array of 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 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

Differentiate a Legendre series with multidimensional coefficients in Python

AmitDiwan
Updated on 08-Mar-2022 05:55:09

83 Views

To differentiate a Legendre series, use the polynomial.laguerre.legder() method in Python. Returns the Legendre series coefficients c differentiated m times along axis. At each iteration the result is multiplied by sclThe 1st parameter, c is an array of Legendre 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 the number of derivatives taken, must be non-negative. (Default: 1). The 3rd parameter, scl is a scalar. Each differentiation is multiplied by scl. The end result is multiplication by scl**m. This is ... Read More

Evaluate a 2-D Hermite_e series at points (x,y) with 3D array of coefficient in Python

AmitDiwan
Updated on 08-Mar-2022 05:52:44

76 Views

To evaluate a 2D Hermite_e series at points (x, y), use the hermite.hermeval2d() 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, ... Read More

Evaluate a 2-D Hermite_e series at points (x,y) in Python

AmitDiwan
Updated on 08-Mar-2022 05:49:44

88 Views

To evaluate a 2D Hermite_e series at points (x, y), use the hermite.hermeval2d() 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, ... Read More

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

AmitDiwan
Updated on 08-Mar-2022 05:47:43

118 Views

To evaluate a 2D Laguerre series at points (x, y), 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, ... Read More

Evaluate a 3D Laguerre series at points (x,y,z) with 4D array of coefficient in Python

AmitDiwan
Updated on 08-Mar-2022 05:45:21

107 Views

To evaluate a 3D Laguerre series at points x, y, 2 use the polynomial.laguerre.lagval3d() method in Python Numpy. The method returns the values of the multidimensional polynomial on points formed with triples of corresponding values from x, y, and z..If c has fewer than 3 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. The 1st parameter is x, y, z. The three dimensional series is evaluated at the points (x, y, z), where x, y, and z must have the same shape. If any of x, ... Read More

Evaluate a 3D Laguerre series at points (x,y,z) in Python

AmitDiwan
Updated on 08-Mar-2022 05:42:58

132 Views

To evaluate a 3D Laguerre series at points x, use the polynomial.laguerre.lagval3d() method in Python Numpy. The method returns the values of the multidimensional polynomial on points formed with triples of corresponding values from x, y, and z. If c has fewer than 3 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.The 1st parameter is x, y, z. The three dimensional series is evaluated at the points (x, y, z), where x, y, and z must have the same shape. If any of x, y, or ... Read More

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

AmitDiwan
Updated on 08-Mar-2022 05:40:18

74 Views

To evaluate a Hermite_e series at points x, use the hermite.hermeval() method in Python Numpy. The 1st parameter, 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 coefficients ... Read More

Advertisements