diff --git a/src/func_plot.rs b/src/func_plot.rs index 1f05525..dca1263 100644 --- a/src/func_plot.rs +++ b/src/func_plot.rs @@ -61,7 +61,7 @@ fn integral_rectangles( .map(|e| { let x: f32 = ((e as f32) * step) + min_x; - let x2: f32 = match x > 0.1 { + let x2: f32 = match x > 0.0 { true => x + step, false => x - step, };