sin(x, /[, out, where, casting, order, …])
sin
Trigonometric sine, element-wise.
cos(x, /[, out, where, casting, order, …])
cos
Cosine element-wise.
tan(x, /[, out, where, casting, order, …])
tan
Compute tangent element-wise.
arcsin(x, /[, out, where, casting, order, …])
arcsin
Inverse sine, element-wise.
arccos(x, /[, out, where, casting, order, …])
arccos
Trigonometric inverse cosine, element-wise.
arctan(x, /[, out, where, casting, order, …])
arctan
Trigonometric inverse tangent, element-wise.
hypot(x1, x2, /[, out, where, casting, …])
hypot
Given the “legs” of a right triangle, return its hypotenuse.
arctan2(x1, x2, /[, out, where, casting, …])
arctan2
Element-wise arc tangent of x1/x2 choosing the quadrant correctly.
x1/x2
degrees(x, /[, out, where, casting, order, …])
degrees
Convert angles from radians to degrees.
radians(x, /[, out, where, casting, order, …])
radians
Convert angles from degrees to radians.
unwrap(p[, discont, axis])
unwrap
Unwrap by changing deltas between values to 2*pi complement.
deg2rad(x, /[, out, where, casting, order, …])
deg2rad
rad2deg(x, /[, out, where, casting, order, …])
rad2deg
sinh(x, /[, out, where, casting, order, …])
sinh
Hyperbolic sine, element-wise.
cosh(x, /[, out, where, casting, order, …])
cosh
Hyperbolic cosine, element-wise.
tanh(x, /[, out, where, casting, order, …])
tanh
Compute hyperbolic tangent element-wise.
arcsinh(x, /[, out, where, casting, order, …])
arcsinh
Inverse hyperbolic sine element-wise.
arccosh(x, /[, out, where, casting, order, …])
arccosh
Inverse hyperbolic cosine, element-wise.
arctanh(x, /[, out, where, casting, order, …])
arctanh
Inverse hyperbolic tangent element-wise.
around(a[, decimals, out])
around
Evenly round to the given number of decimals.
round_(a[, decimals, out])
round_
Round an array to the given number of decimals.
rint(x, /[, out, where, casting, order, …])
rint
Round elements of the array to the nearest integer.
fix(x[, out])
fix
Round to nearest integer towards zero.
floor(x, /[, out, where, casting, order, …])
floor
Return the floor of the input, element-wise.
ceil(x, /[, out, where, casting, order, …])
ceil
Return the ceiling of the input, element-wise.
trunc(x, /[, out, where, casting, order, …])
trunc
Return the truncated value of the input, element-wise.
prod(a[, axis, dtype, out, keepdims, …])
prod
Return the product of array elements over a given axis.
sum(a[, axis, dtype, out, keepdims, …])
sum
Sum of array elements over a given axis.
nanprod(a[, axis, dtype, out, keepdims])
nanprod
Return the product of array elements over a given axis treating Not a Numbers (NaNs) as ones.
nansum(a[, axis, dtype, out, keepdims])
nansum
Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero.
cumprod(a[, axis, dtype, out])
cumprod
Return the cumulative product of elements along a given axis.
cumsum(a[, axis, dtype, out])
cumsum
Return the cumulative sum of the elements along a given axis.
nancumprod(a[, axis, dtype, out])
nancumprod
Return the cumulative product of array elements over a given axis treating Not a Numbers (NaNs) as one.
nancumsum(a[, axis, dtype, out])
nancumsum
Return the cumulative sum of array elements over a given axis treating Not a Numbers (NaNs) as zero.
diff(a[, n, axis, prepend, append])
diff
Calculate the n-th discrete difference along the given axis.
ediff1d(ary[, to_end, to_begin])
ediff1d
The differences between consecutive elements of an array.
gradient(f, *varargs[, axis, edge_order])
gradient
Return the gradient of an N-dimensional array.
cross(a, b[, axisa, axisb, axisc, axis])
cross
Return the cross product of two (arrays of) vectors.
trapz(y[, x, dx, axis])
trapz
Integrate along the given axis using the composite trapezoidal rule.
exp(x, /[, out, where, casting, order, …])
exp
Calculate the exponential of all elements in the input array.
expm1(x, /[, out, where, casting, order, …])
expm1
Calculate exp(x) - 1 for all elements in the array.
exp(x) - 1
exp2(x, /[, out, where, casting, order, …])
exp2
Calculate 2**p for all p in the input array.
log(x, /[, out, where, casting, order, …])
log
Natural logarithm, element-wise.
log10(x, /[, out, where, casting, order, …])
log10
Return the base 10 logarithm of the input array, element-wise.
log2(x, /[, out, where, casting, order, …])
log2
Base-2 logarithm of x.
log1p(x, /[, out, where, casting, order, …])
log1p
Return the natural logarithm of one plus the input array, element-wise.
logaddexp(x1, x2, /[, out, where, casting, …])
logaddexp
Logarithm of the sum of exponentiations of the inputs.
logaddexp2(x1, x2, /[, out, where, casting, …])
logaddexp2
Logarithm of the sum of exponentiations of the inputs in base-2.
i0(x)
i0
Modified Bessel function of the first kind, order 0.
sinc(x)
sinc
Return the normalized sinc function.
signbit(x, /[, out, where, casting, order, …])
signbit
Returns element-wise True where signbit is set (less than zero).
copysign(x1, x2, /[, out, where, casting, …])
copysign
Change the sign of x1 to that of x2, element-wise.
frexp(x[, out1, out2], / [[, out, where, …])
frexp
Decompose the elements of x into mantissa and twos exponent.
ldexp(x1, x2, /[, out, where, casting, …])
ldexp
Returns x1 * 2**x2, element-wise.
nextafter(x1, x2, /[, out, where, casting, …])
nextafter
Return the next floating-point value after x1 towards x2, element-wise.
spacing(x, /[, out, where, casting, order, …])
spacing
Return the distance between x and the nearest adjacent number.
lcm(x1, x2, /[, out, where, casting, order, …])
lcm
Returns the lowest common multiple of |x1| and |x2|
|x1|
|x2|
gcd(x1, x2, /[, out, where, casting, order, …])
gcd
Returns the greatest common divisor of |x1| and |x2|
add(x1, x2, /[, out, where, casting, order, …])
add
Add arguments element-wise.
reciprocal(x, /[, out, where, casting, …])
reciprocal
Return the reciprocal of the argument, element-wise.
positive(x, /[, out, where, casting, order, …])
positive
Numerical positive, element-wise.
negative(x, /[, out, where, casting, order, …])
negative
Numerical negative, element-wise.
multiply(x1, x2, /[, out, where, casting, …])
multiply
Multiply arguments element-wise.
divide(x1, x2, /[, out, where, casting, …])
divide
Returns a true division of the inputs, element-wise.
power(x1, x2, /[, out, where, casting, …])
power
First array elements raised to powers from second array, element-wise.
subtract(x1, x2, /[, out, where, casting, …])
subtract
Subtract arguments, element-wise.
true_divide(x1, x2, /[, out, where, …])
true_divide
floor_divide(x1, x2, /[, out, where, …])
floor_divide
Return the largest integer smaller or equal to the division of the inputs.
float_power(x1, x2, /[, out, where, …])
float_power
fmod(x1, x2, /[, out, where, casting, …])
fmod
Return the element-wise remainder of division.
mod(x1, x2, /[, out, where, casting, order, …])
mod
Return element-wise remainder of division.
modf(x[, out1, out2], / [[, out, where, …])
modf
Return the fractional and integral parts of an array, element-wise.
remainder(x1, x2, /[, out, where, casting, …])
remainder
divmod(x1, x2[, out1, out2], / [[, out, …])
divmod
Return element-wise quotient and remainder simultaneously.
angle(z[, deg])
angle
Return the angle of the complex argument.
real(val)
real
Return the real part of the complex argument.
imag(val)
imag
Return the imaginary part of the complex argument.
conj(x, /[, out, where, casting, order, …])
conj
Return the complex conjugate, element-wise.
conjugate(x, /[, out, where, casting, …])
conjugate
convolve(a, v[, mode])
convolve
Returns the discrete, linear convolution of two one-dimensional sequences.
clip(a, a_min, a_max[, out])
clip
Clip (limit) the values in an array.
sqrt(x, /[, out, where, casting, order, …])
sqrt
Return the non-negative square-root of an array, element-wise.
cbrt(x, /[, out, where, casting, order, …])
cbrt
Return the cube-root of an array, element-wise.
square(x, /[, out, where, casting, order, …])
square
Return the element-wise square of the input.
absolute(x, /[, out, where, casting, order, …])
absolute
Calculate the absolute value element-wise.
fabs(x, /[, out, where, casting, order, …])
fabs
Compute the absolute values element-wise.
sign(x, /[, out, where, casting, order, …])
sign
Returns an element-wise indication of the sign of a number.
heaviside(x1, x2, /[, out, where, casting, …])
heaviside
Compute the Heaviside step function.
maximum(x1, x2, /[, out, where, casting, …])
maximum
Element-wise maximum of array elements.
minimum(x1, x2, /[, out, where, casting, …])
minimum
Element-wise minimum of array elements.
fmax(x1, x2, /[, out, where, casting, …])
fmax
fmin(x1, x2, /[, out, where, casting, …])
fmin
nan_to_num(x[, copy, nan, posinf, neginf])
nan_to_num
Replace NaN with zero and infinity with large finite numbers (default behaviour) or with the numbers defined by the user using the nan, posinf and/or neginf keywords.
nan
real_if_close(a[, tol])
real_if_close
If input is complex with all imaginary parts close to zero, return real parts.
interp(x, xp, fp[, left, right, period])
interp
One-dimensional linear interpolation.