Skip to main content

NumPy Math Methods

NumPy provides methods to perform math operations on arrays, such as square root, power, logarithm and trigonometric functions.

limits the values in an array to a specified range

returns rounded elements

calculate the sum of array elements

raise the elements of an array to specified power

calculate the cumulative sum of array elements

perform element-wise multiplication of two arrays

computes square root of each element in an array

round down elements to nearest smallest integer

computes the absolute value

calculate the difference of consecutive elements

perform element-wise division of the elements

computes the element-wise sine of array

computes squares of an array's elements

perform element-wise addition

finds minimum value between corresponding elements

finds maximum value between corresponding elements

computes the element-wise arc tangent

computes the cross product of two vectors

determines the sign of each element in an array

calculates base-10 logarithm of array elements

computes arctangent (inverse tangent) of an array

compute the maximum value in an array

computes arccosine (inverse cosine) of an array

computes the element-wise cosine of an array

performs element-wise subtraction of two arrays

rounds up each element in an array

compute the minimum value

compute definite integral using trapezoidal rule

computes the arcsine (inverse sine) of array

rounds the elements of an array

compute the element-wise tangent

calculate the product of array elements

calculate the hyperbolic tangent

calculates the hypotennumber

calculate the natural logarithm of the elements

calculate the exponential values of the elements