pub fn trig(x: f32, coarse: bool) -> f32