521c2e156b
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> |
||
---|---|---|
.. | ||
README.md |
Mathematical functions
I will focus on the important ones.
Trigonometric functions
sin(x, /[, out, where, casting, order, ...]) | Trigonometric sine, element-wise. |
cos(x, /[, out, where, casting, order, ...]) | Cosine element-wise. |
tan(x, /[, out, where, casting, order, ...]) | Compute tangent element-wise. |
arcsin(x, /[, out, where, casting, order, ...]) | Inverse sine, element-wise. |
arccos(x, /[, out, where, casting, order, ...]) | Trigonometric inverse cosine, element-wise. |
arctan(x, /[, out, where, casting, order, ...]) | Trigonometric inverse tangent, element-wise. |
hypot(x1, x2, /[, out, where, casting, ...]) | Given the "legs" of a right triangle, return its hypotenuse. |
arctan2(x1, x2, /[, out, where, casting, ...]) | Element-wise arc tangent of x1/x2 choosing the quadrant correctly. |
degrees(x, /[, out, where, casting, order, ...]) | Convert angles from radians to degrees. |
radians(x, /[, out, where, casting, order, ...]) | Convert angles from degrees to radians. |
unwrap(p[, discont, axis, period]) | Unwrap by taking the complement of large deltas with respect to the period. |
deg2rad(x, /[, out, where, casting, order, ...]) | Convert angles from degrees to radians. |
rad2deg(x, /[, out, where, casting, order, ...]) | Convert angles from radians to degrees. |
Hyperbolic functions
sinh(x, /[, out, where, casting, order, ...]) | Hyperbolic sine, element-wise. |
cosh(x, /[, out, where, casting, order, ...]) | Hyperbolic cosine, element-wise. |
tanh(x, /[, out, where, casting, order, ...]) | Compute hyperbolic tangent element-wise. |
arcsinh(x, /[, out, where, casting, order, ...]) | Inverse hyperbolic sine element-wise. |
arccosh(x, /[, out, where, casting, order, ...]) | Inverse hyperbolic cosine, element-wise. |
arctanh(x, /[, out, where, casting, order, ...]) | Inverse hyperbolic tangent element-wise. |
Rounding
round(a[, decimals, out]) | Evenly round to the given number of decimals. |
around(a[, decimals, out]) | Round an array to the given number of decimals. |
rint(x, /[, out, where, casting, order, ...]) | Round elements of the array to the nearest integer. |
fix(x[, out]) | Round to nearest integer towards zero. |
floor(x, /[, out, where, casting, order, ...]) | Return the floor of the input, element-wise. |
ceil(x, /[, out, where, casting, order, ...]) | Return the ceiling of the input, element-wise. |
trunc(x, /[, out, where, casting, order, ...]) | Return the truncated value of the input, element-wise. |