(x: f32, y: f32)
| 88 | } |
| 89 | |
| 90 | fn is_sensitive_pair(x: f32, y: f32) -> bool { |
| 91 | if x == 0.0 { |
| 92 | y.abs() > 0.9 |
| 93 | } else { |
| 94 | (y / x).abs() > 0.9 |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | fn calculate_weight(iteration: u8) -> f32 { |
| 99 | (iteration as f32).powi(2) / 1.618034 // Golden ratio approximation |
no outgoing calls
no test coverage detected