Mathematical functions#
Trigonometric functions#
  | 
Trigonometric sine, element-wise.  | 
  | 
Cosine element-wise.  | 
  | 
Compute tangent element-wise.  | 
  | 
Inverse sine, element-wise.  | 
  | 
Trigonometric inverse cosine, element-wise.  | 
  | 
Trigonometric inverse tangent, element-wise.  | 
  | 
Given the “legs” of a right triangle, return its hypotenuse.  | 
  | 
Element-wise arc tangent of   | 
  | 
Convert angles from radians to degrees.  | 
  | 
Convert angles from degrees to radians.  | 
  | 
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 cosine, element-wise.  | 
  | 
Inverse hyperbolic tangent element-wise.  | 
Rounding#
  | 
Evenly round to the given number of decimals.  | 
  | 
Round elements of the array to the nearest integer.  | 
  | 
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 cumulative product of the elements along a given axis.  | 
  | 
Return the cumulative sum of the elements along a given axis.  | 
  | 
Calculate the n-th discrete difference along the given axis.  | 
  | 
Return the cumulative product of the elements along a given axis treating Not a Numbers (NaNs) as one.  | 
  | 
Return the cumulative sum of the elements along a given axis treating Not a Numbers (NaNs) as zero.  | 
  | 
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 ones.  | 
  | 
Return the gradient of an N-dimensional array.  | 
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.  | 
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.  | 
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.  | 
  | 
Returns a true division of the inputs, element-wise.  | 
  | 
First array elements raised to powers from second array, element-wise.  | 
  | 
Subtract arguments, element-wise.  | 
  | 
Returns a true division of the inputs, 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.  | 
  | 
Return element-wise remainder of division.  | 
  | 
Return the fractional and integral parts of an array, element-wise.  | 
  | 
Return element-wise remainder of division.  | 
Handling complex numbers#
  | 
Return the real part of the complex argument.  | 
  | 
Return the imaginary part of the complex argument.  | 
  | 
Return the angle of the complex argument.  | 
  | 
Return the complex conjugate, element-wise.  | 
  | 
Return the complex conjugate, element-wise.  | 
Extrema Finding#
  | 
Element-wise maximum of array elements.  | 
  | 
Element-wise maximum of array elements.  | 
  | 
Return the maximum of an array or maximum along an axis.  | 
  | 
Element-wise minimum of array elements.  | 
  | 
Element-wise minimum of array elements.  | 
  | 
Return the minimum of an array or minimum along an axis.  | 
  | 
Return minimum of an array or minimum along an axis, ignoring any NaNs.  | 
  | 
Return the maximum of an array or maximum along an axis, ignoring any NaNs.  | 
Miscellaneous#
  | 
Returns the discrete, linear convolution of two ndarrays.  | 
  | 
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.  | 
  | 
Inner product of two arrays.  | 
  | 
Compute the outer product of two vectors.  | 
  | 
Return the dot product of two vectors.  |