Skip to main content

cos

Function cos 

Source
pub fn cos<F: Float>(x: F) -> F
Expand description

cos x. cos(±0) is 1, and cos(±∞) and cos(NaN) are NaN. Beyond the magnitude that sin gives, x takes the same exact reduction.