pub fn gate(x: f32) -> f32