pub fn peak(x: f32) -> f32