From a83282a8d60521d9db7c3643ed58f896fc5a182d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 22 Mar 2022 14:47:48 -0400 Subject: [PATCH] remove import --- src/misc.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/misc.rs b/src/misc.rs index 472f768..946a343 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -1,5 +1,3 @@ -use std::ops::Range; - /// `SteppedVector` is used in order to efficiently sort through an ordered /// `Vec` Used in order to speedup the processing of cached data when /// moving horizontally without zoom in `FunctionEntry`. Before this struct, the @@ -140,7 +138,7 @@ pub fn decimal_round(x: f64, n: usize) -> f64 { /// `f_1` is f'(x) /// The function returns a Vector of `x` values where roots occur pub fn newtons_method( - threshold: f64, range: Range, data: Vec, + threshold: f64, range: std::ops::Range, data: Vec, f: &dyn Fn(f64) -> f64, f_1: &dyn Fn(f64) -> f64, ) -> Vec { let mut output_list: Vec = Vec::new();