Should ODE.rs
be even more influenced by MATLAB with a syntax like this:
use ode::rk4::solver;
let (t, x) = solver(some_function,
initial_conditions,
time_interval,
step);
// do something with t and x
or is it better to work with something like this:
use ode::{Method, Solver};
let ini_cond: Vec<f32> = vec![1., 2.];
let (t, pos) = Solver::new(ini_cond.clone(), |t: &f32, _: &Vec<f32>| vec![2.*t] )
.method(Method::RK4)
.run();
This seems more natural and Rust-like, aside from providing a better way to customize the solver (or to construct one with default values).
Considering I'm not giving up on having the solver as generic as possible, I think I'll work with the second option.