Function spinoso_math::sin[][src]

#[must_use]pub fn sin(value: f64) -> f64

Computes the sine of the given value (expressed in radians). Returns a Float in the range -1.0..=1.0.

Domain: (-INFINITY, INFINITY)

Codomain: [-1, 1]

Examples

use spinoso_math as math;
assert_eq!(math::sin(math::PI / 2.0), 1.0);