fix resolution_helper
This commit is contained in:
@@ -227,7 +227,7 @@ pub fn newtons_method(
|
||||
// Returns a vector of length `max_i` starting at value `min_x` with resolution
|
||||
// of `resolution`
|
||||
pub fn resolution_helper(max_i: usize, min_x: f64, resolution: f64) -> Vec<f64> {
|
||||
(0..=max_i)
|
||||
(0..max_i)
|
||||
.map(|x| (x as f64 / resolution as f64) + min_x)
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user