Mathematical functions#
Trigonometric functions#
|
Trigonometric sine, element-wise. |
|
Cosine element-wise. |
|
Compute tangent element-wise. |
|
Inverse sine, element-wise. |
|
Inverse sine, element-wise. |
|
Trigonometric inverse cosine, element-wise. |
|
Trigonometric inverse cosine, element-wise. |
|
Trigonometric inverse tangent, element-wise. |
|
Trigonometric inverse tangent, element-wise. |
|
Given the "legs" of a right triangle, return its hypotenuse. |
|
Element-wise arc tangent of |
|
Element-wise arc tangent of |
|
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. |
Hyperbolic functions#
|
Hyperbolic sine, element-wise. |
|
Hyperbolic cosine, element-wise. |
|
Compute hyperbolic tangent element-wise. |
|
Inverse hyperbolic sine element-wise. |
|
Inverse hyperbolic sine element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Inverse hyperbolic tangent element-wise. |
|
Inverse hyperbolic tangent element-wise. |
Rounding#
|
Evenly round to the given number of decimals. |
|
Round an array to the given number of decimals. |
|
Round elements of the array to the nearest integer. |
|
Round to nearest integer towards zero. |
|
Return the floor of the input, element-wise. |
|
Return the ceiling of the input, element-wise. |
|
Return the truncated value of the input, element-wise. |
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 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 one. |
|
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. |
Exponents and logarithms#
|
Calculate the exponential of all elements in the input array. |
|
Calculate |
|
Calculate 2**p for all p in the input array. |
|
Natural logarithm, element-wise. |
|
Return the base 10 logarithm of the input array, element-wise. |
|
Base-2 logarithm of x. |
|
Return the natural logarithm of one plus the input array, element-wise. |
|
Logarithm of the sum of exponentiations of the inputs. |
|
Logarithm of the sum of exponentiations of the inputs in base-2. |
Other special functions#
Floating point routines#
|
Returns element-wise True where signbit is set (less than zero). |
|
Change the sign of x1 to that of x2, element-wise. |
|
Decompose the elements of x into mantissa and twos exponent. |
|
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#
Arithmetic operations#
|
Add arguments element-wise. |
|
Return the reciprocal of the argument, element-wise. |
|
Numerical positive, element-wise. |
|
Numerical negative, element-wise. |
|
Multiply arguments element-wise. |
|
Divide arguments element-wise. |
|
First array elements raised to powers from second array, element-wise. |
|
First array elements raised to powers from second array, element-wise. |
|
Subtract arguments, element-wise. |
|
Divide arguments element-wise. |
|
Return the largest integer smaller or equal to the division of the inputs. |
|
First array elements raised to powers from second array, element-wise. |
|
Returns the element-wise remainder of division. |
|
Returns the element-wise remainder of division. |
|
Return the fractional and integral parts of an array, element-wise. |
|
Returns the element-wise remainder of division. |
|
Return element-wise quotient and remainder simultaneously. |
Handling complex numbers#
|
Return the angle of the complex argument. |
|
Return the real part of the complex argument. |
|
Return the imaginary part of the complex argument. |
|
Return the complex conjugate, element-wise. |
|
Return the complex conjugate, element-wise. |
Extrema finding#
|
Element-wise maximum of array elements. |
|
Return the maximum of an array or maximum along an axis. |
|
Return the maximum of an array or maximum along an axis. |
|
Element-wise maximum of array elements. |
|
Return the maximum of an array or maximum along an axis, ignoring any NaNs. |
|
Element-wise minimum of array elements. |
|
Return the minimum of an array or minimum along an axis. |
|
Return the minimum of an array or minimum along an axis. |
|
Element-wise minimum of array elements. |
|
Return 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. |
|
Return the non-negative square-root of an array, element-wise. |
|
Return the cube-root of an array, element-wise. |
|
Return the element-wise square of the input. |
|
Calculate the absolute value element-wise. |
|
Compute the absolute values element-wise. |
|
Returns an element-wise indication of the sign of a number. |
|
Compute the Heaviside step function. |
|
Replace NaN with zero and infinity with large finite numbers (default behaviour) or with the numbers defined by the user using the |
|
If input is complex with all imaginary parts close to zero, return real parts. |
|
One-dimensional linear interpolation for monotonically increasing sample points. |
|
Computes the number of 1-bits in the absolute value of |