atan
fn atan(float x) -> float
Source: compiler/src/builtin_docs/prelude/math.hy Returns the arctangent of x, in radians in -pi/2..=pi/2.
Parameters#
| Name | Type |
|---|---|
x | float |
Returns#
float
Examples#
use tests::assert;
assert!(atan(0.0) == 0.0);
assert!(atan(1.0) * 4.0 == 3.141592653589793);
See also#
sin: Returns the sine ofx(in radians).cos: Returns the cosine ofx(in radians).tan: Returns the tangent ofx(in radians).sqrt: Returns the square root ofx.floor: Returns the largest whole number less than or equal tox, as afloat.ceil: Returns the smallest whole number greater than or equal tox, as afloat.exp: Returnseraised to the powerx.ln: Returns the natural logarithm ofx.