cos(x: f64) → f64
Category: [math](builtinsmath)_
Cosine of an angle in radians.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| x | f64 | The input value. | — |
| returns | f64 | The result. | — |
wcl
cos(0.0) // cosine of 0 radians → 1.0cos(x: f64) → f64
Category: [math](builtinsmath)_
Cosine of an angle in radians.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| x | f64 | The input value. | — |
| returns | f64 | The result. | — |
cos(0.0) // cosine of 0 radians → 1.0