Mathematical functions
Trigonometric functions
Computes sine for each element x_i of input array x. |
|
Computes cosine for each element x_i for input array x. |
|
Computes tangent for each element x_i for input array x. |
|
Computes inverse sine for each element x_i for input array x. |
|
Computes inverse sine for each element x_i for input array x. |
|
Computes inverse cosine for each element x_i for input array x. |
|
Computes inverse cosine for each element x_i for input array x. |
|
Computes inverse tangent for each element x_i for input array x. |
|
Computes inverse tangent for each element x_i for input array x. |
|
Calculates the hypotenuse for a right triangle with "legs" x1_i and x2_i of input arrays x1 and x2. |
|
Calculates the inverse tangent of the quotient x1_i/x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the inverse tangent of the quotient x1_i/x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Convert angles from radians to degrees. |
|
Convert angles from degrees to radians. |
|
Unwrap by taking the complement of large deltas with respect to the period. |
|
Convert angles from degrees to radians. |
|
Convert angles from radians to degrees. |
|
Calculates the square root of the sum of squares of elements in the input array. |
Hyperbolic functions
Computes hyperbolic sine for each element x_i for input array x. |
|
Computes hyperbolic cosine for each element x_i for input array x. |
|
Computes hyperbolic tangent for each element x_i for input array x. |
|
Computes inverse hyperbolic sine for each element x_i for input array x. |
|
Computes inverse hyperbolic sine for each element x_i for input array x. |
|
Computes inverse hyperbolic cosine for each element x_i for input array x. |
|
Computes inverse hyperbolic cosine for each element x_i for input array x. |
|
Computes hyperbolic inverse tangent for each element x_i for input array x. |
|
Computes hyperbolic inverse tangent for each element x_i for input array x. |
Rounding
Rounds each element x_i of the input array x to the nearest integer-valued number. |
|
Round an array to the given number of decimals. |
|
Rounds each element x_i of the input array x to the nearest integer-valued number. |
|
Round to nearest integer towards zero. |
|
Returns the floor for each element x_i for input array x. |
|
Returns the ceiling for each element x_i for input array x. |
|
Returns the truncated value for each element x_i for input array x. |
Sums, products, differences
Return the product of array elements over a given axis. |
|
Sum of array elements over a given axis. |
|
Return the product of array elements over a given axis treating Not a Numbers (NaNs) as ones. |
|
Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. |
|
Return the cumulative sum of the elements along a given axis. |
|
Return the cumulative product of elements along a given axis. |
|
Return the cumulative product of elements along a given axis. |
|
Return the cumulative sum of the elements along a given axis. |
|
Return the cumulative product of array elements over a given axis treating Not a Numbers (NaNs) as zero. |
|
Return the cumulative sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. |
|
Calculate the n-th discrete difference along the given axis. |
|
The differences between consecutive elements of an array. |
|
Return the gradient of an N-dimensional array. |
|
Return the cross product of two (arrays of) vectors. |
|
Integrate along the given axis using the composite trapezoidal rule. |
Exponents and logarithms
Computes the exponent for each element x_i of input array x. |
|
Computes the exponent minus 1 for each element x_i of input array x. |
|
Computes the base-2 exponent for each element x_i for input array x. |
|
Computes the natural logarithm for each element x_i of input array x. |
|
Computes the base-10 logarithm for each element x_i of input array x. |
|
Computes the base-2 logarithm for each element x_i of input array x. |
|
Computes the natural logarithm of (1 + x) for each element x_i of input array x. |
|
Calculates the natural logarithm of the sum of exponents for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the logarithm of the sum of exponents in base-2 for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the logarithm of the sum of exponents of elements in the input array. |
|
Calculates the cumulative logarithm of the sum of elements in the input array x. |
Other special functions
Modified Bessel function of the first kind, order 0. |
|
Return the normalized sinc function. |
Floating point routines
Computes an indication of whether the sign bit of each element x_i of input array x is set. |
|
Composes a floating-point value with the magnitude of x1_i and the sign of x2_i for each element of input arrays x1 and x2. |
|
Returns x1 * 2**x2, element-wise. |
|
Return the next floating-point value after x1 towards x2, element-wise. |
|
Return the distance between x and the nearest adjacent number. |
Rational routines
Returns the lowest common multiple of |
|
Returns the greatest common divisor of |
Arithmetic operations
Calculates the sum for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the reciprocal square-root for each element x_i for input array x. |
|
Computes the numerical positive for each element x_i of input array x. |
|
Computes the numerical negative for each element x_i of input array x. |
|
Calculates the product for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the ratio for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates x1_i raised to x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates x1_i raised to x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the difference between each element x1_i of the input array x1 and the respective element x2_i of the input array x2. |
|
Calculates the ratio for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the ratio for each element x1_i of the input array x1 with the respective element x2_i of the input array x2 to the greatest integer-value number that is not greater than the division result. |
|
Calculates x1_i raised to x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the remainder of division for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates the remainder of division for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Return the fractional and integral parts of an array, element-wise. |
|
Calculates the remainder of division for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
Handling complex numbers
Computes the phase angle (also called the argument) of each element x_i for input array x. |
|
Computes real part of each element x_i for input array x. |
|
Computes imaginary part of each element x_i for input array x. |
|
Computes conjugate of each element x_i for input array x. |
|
Computes conjugate of each element x_i for input array x. |
|
Computes projection of each element x_i for input array x. |
Extrema finding
Compares two input arrays x1 and x2 and returns a new array containing the element-wise maxima. |
|
Return the maximum of an array or maximum along an axis. |
|
Return the maximum of an array or maximum along an axis. |
|
Compares two input arrays x1 and x2 and returns a new array containing the element-wise maxima. |
|
Return the maximum of an array or maximum along an axis, ignoring any NaNs. |
|
Compares two input arrays x1 and x2 and returns a new array containing the element-wise minima. |
|
Return the minimum of an array or maximum along an axis. |
|
Return the minimum of an array or minimum along an axis. |
|
Compares two input arrays x1 and x2 and returns a new array containing the element-wise minima. |
|
Return the minimum of an array or minimum along an axis, ignoring any NaNs. |
Miscellaneous
Returns the discrete, linear convolution of two one-dimensional sequences. |
|
Clip (limit) the values in an array. |
|
Computes the positive square-root for each element x_i of input array x. |
|
Computes positive cube-root for each element x_i for input array x. |
|
Squares each element x_i of input array x. |
|
Computes the reciprocal square-root for each element x_i for input array x. |
|
Calculates the absolute value for each element x_i of input array x. |
|
Calculates the absolute value for each element x_i of input array x. |
|
Compute the absolute values element-wise. |
|
Computes an indication of the sign of each element x_i of input array x using the signum function. |
|
Compute the Heaviside step function. |
|
Replace |
|
If input is complex with all imaginary parts close to zero, return real parts. |