Mathematical Functions
The following tables show mathematical functions provided by NLCPy.
Trigonometric Functions
Computes the element-wise sine. |
|
Computes the element-wise cosine. |
|
Computes the element-wise tangent. |
|
Computes the element-wise inverse sine. |
|
Computes the element-wise inverse cosine. |
|
Computes the element-wise inverse tangent. |
|
Computes the element-wise inverse tangent of x1/x2 choosing the quadrant correctly. |
|
Computes the "legs" of a right triangle. |
|
Converts angles from radians to degrees. |
|
Converts angles from degrees to radians. |
|
Converts angles from degrees to radians. |
|
Converts angles from radians to degrees. |
Hyperbolic Functions
Computes the element-wise hyperbolic sine. |
|
Computes the element-wise hyperbolic cosine. |
|
Computes the element-wise hyperbolic tangent. |
|
Computes the element-wise inverse hyperbolic sine. |
|
Computes the element-wise inverse hyperbolic cosine. |
|
Computes the element-wise inverse hyperbolic tangent. |
Rounding
Returns the floor of the input, element-wise. |
|
Returns the ceiling of the input, element-wise. |
|
Returns the truncated value of the input, element-wise. |
Sums, Products, Differences
Returns the product of array elements over a given axis. |
|
Sum of array elements over a given axis. |
|
Returns the cumulative sum of the elements along a given axis. |
|
Calculates the n-th discrete difference along the given axis. |
Exponents and Logarithms
Computes the exponential of all elements in the input array. |
|
Computes 2**x for all elements in the array. |
|
Computes the element-wise natural logarithm of x. |
|
Computes the element-wise base-10 logarithm of x. |
|
Computes exp(x) - 1 for all elements in the array. |
|
Computes the element-wise natural logarithm of 1 + x. |
|
Computes the element-wise natural logarithm of . |
|
Computes the element-wise base-2 logarithm of . |
|
Returns True where signbit is set (less than zero), element-wise. |
|
Changes the sign of x1 to that of x2, element-wise. |
|
Returns the distance between x and the nearest adjacent number, element-wise. |
|
Returns , element-wise. |
Arithmetic Operations
Computes the element-wise addition of the inputs. |
|
Computes the element-wise subtraction of the inputs. |
|
Computes the element-wise multiplication of the inputs. |
|
Computes the element-wise division of the inputs. |
|
Computes the element-wise division of the inputs. |
|
Computes the element-wise floor division of the inputs. |
|
Computes numerical negative, element-wise. |
|
Computes numerical positive, element-wise. |
|
Computes the element-wise exponentiation of the inputs. |
|
Computes the element-wise remainder of division. |
|
Computes the element-wise remainder of division. |
|
Computes the element-wise remainder of division. |
|
Computes the element-wise absolute value. |
|
Computes the element-wise reciprocal of the input. |
Handling Complex Numbers
Returns the angle of the complex argument. |
|
Returns the real part of the complex argument. |
|
Returns the imaginary part of the complex argument. |
|
Returns the element-wise complex conjugate. |
|
Returns the element-wise complex conjugate. |
Miscellaneous
Clips (limits) the values in an array. |
|
Computes the element-wise square-root of the input. |
|
Computes the element-wise cubic-root of the input. |
|
Computes the element-wise square of the input. |
|
Computes the element-wise absolute value. |
|
Computes the element-wise absolute value. |
|
Returns the element-wise indication of the sign of a number. |
|
Computes Heaviside step function. |
|
Computes the element-wise maximum of the inputs. |
|
Computes the element-wise minimum of the inputs. |
|
Computes the element-wise maximum of the inputs. |
|
Computes the element-wise minimum of the inputs. |