more refactoring

This commit is contained in:
Simon Gardling
2022-03-10 10:38:42 -05:00
parent 3e00657ade
commit 3f5a81b16c
3 changed files with 46 additions and 69 deletions

View File

@@ -95,7 +95,6 @@ pub fn digits_precision(x: f64, digits: usize) -> f64 {
(x * large_number).round() / large_number
}
/// Implements newton's method of finding roots.
/// `threshold` is the target accuracy threshold
/// `range` is the range of valid x values (used to stop calculation when the point won't display anyways)