pub fn solve_adaptive<F>(
f: F,
x0: f64,
y0: f64,
x_end: f64,
initial_step: f64,
config: AdaptiveConfig,
) -> Result<Vec<(f64, f64)>, ODEError>Expand description
Solves a first-order ODE using adaptive RKF45 method with Result type
§Arguments
f- The derivative function f(x, y)x0- Initial x valuey0- Initial y valuex_end- Final x valueinitial_step- Initial step sizeconfig- Adaptive configuration
§Returns
Result containing vector of (x, y) solution points