Mathematical functions

Trigonometric functions

sin

Trigonometric sine, element-wise.

cos

Trigonometric cosine, element-wise.

tan

Compute tangent element-wise.

arcsin

Trigonometric inverse sine, element-wise.

arccos

Trigonometric inverse cosine, element-wise.

arctan

Trigonometric inverse tangent, element-wise.

arctan2

Element-wise arc tangent of \(\frac{iarr_1}{iarr_2}\) choosing the quadrant correctly.

Hyperbolic functions

sinh

Hyperbolic sine, element-wise.

cosh

Hyperbolic cosine, element-wise.

tanh

Compute hyperbolic tangent element-wise.

Rounding

floor

Return the floor of the input, element-wise.

ceil

Return the ceiling of the input, element-wise.

Exponents and logarithms

exp

Calculate the exponential of all elements in the input array.

log

Natural logarithm, element-wise.

log10

Return the base 10 logarithm of the input array, element-wise.

Reductions

max

Return the maximum of an array or maximum along an axis.

min

Return the minimum of an array or minimum along an axis.

sum

Return the sum of array elements over a given axis.

prod

Return the product of array elements over a given axis.

mean

Compute the arithmetic mean along the specified axis.

Miscellaneous

sqrt

Return the non-negative square-root of an array, element-wise.

power

First array elements raised to powers from second array, element-wise.

abs

Absolute value, element-wise.

negative

Numerical negative, element-wise.