On this page
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.  | 
     
  | 
      Unwrap by changing deltas between values to 2*pi complement.  | 
     
  | 
      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 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.  | 
     
  | 
      Integrate along the given axis using the composite trapezoidal rule.  | 
     
Exponents and logarithms
  | 
      Calculate the exponential of all elements in the input array.  | 
     
  | 
      Calculate   | 
     
  | 
      Calculate   | 
     
  | 
      Natural logarithm, element-wise.  | 
     
  | 
      Return the base 10 logarithm of the input array, element-wise.  | 
     
  | 
      Base-2 logarithm of   | 
     
  | 
      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
  | 
      Modified Bessel function of the first kind, order 0.  | 
     
  | 
      Return the normalized sinc function.  | 
     
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
  | 
      Returns the lowest common multiple of   | 
     
  | 
      Returns the greatest common divisor of   | 
     
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.  | 
     
  | 
      Return 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.  | 
     
  | 
      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.  | 
     
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.  | 
     
  | 
      Element-wise maximum of array elements.  | 
     
  | 
      Element-wise minimum of array elements.  | 
     
  | 
      Element-wise maximum of array elements.  | 
     
  | 
      Element-wise minimum of array elements.  | 
     
  | 
      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.  | 
     
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
 https://numpy.org/doc/1.20/reference/routines.math.html