method f64.cos
The cosine of x radians.
Example:
fn main() io {
let x: f64 = 0.0
print("{x.cos()}")
}Output
1.0
pub(api) fn cos() -> f64Complexity. O(1).
Since. 1.0.0-beta
Returns
f64
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/numbers.oxl:4043