┌─────────────────────────────────────────────────────────┐ False position method └─────────────────────────────────────────────────────────┘ False position method # Type for `RootFinder` - `I`: 1 - `O`: 1 - `T`: `(f64, f64)` # Arguments - `max_iter`: Maximum number of iterations - `tol`: Absolute tolerance # Caution - The function should be continuous
| 720 | /// |
| 721 | /// - The function should be continuous |
| 722 | pub struct FalsePositionMethod { |
| 723 | pub max_iter: usize, |
| 724 | pub tol: f64, |
| 725 | } |
| 726 | |
| 727 | impl RootFinder<1, 1, (f64, f64)> for FalsePositionMethod { |
| 728 | fn max_iter(&self) -> usize { |
nothing calls this directly
no outgoing calls
no test coverage detected