readme update
This commit is contained in:
@@ -20,8 +20,12 @@ and field line tracing:
|
|||||||
- Rosenbrock
|
- Rosenbrock
|
||||||
- Tsit(5)
|
- Tsit(5)
|
||||||
- Runge Kutta Cash Karp
|
- Runge Kutta Cash Karp
|
||||||
|
- Parameters in the derivative and callback functions
|
||||||
|
- Composite Algorithms
|
||||||
- Automatic Stiffness Detection
|
- Automatic Stiffness Detection
|
||||||
|
- Fixed Time Steps
|
||||||
- Boolean callback eventing
|
- Boolean callback eventing
|
||||||
|
- Improved solution handling like `DifferentialEquations.jl`
|
||||||
|
|
||||||
## To Use
|
## To Use
|
||||||
|
|
||||||
@@ -38,9 +42,9 @@ use differential_equations::problem::*;
|
|||||||
fn derivative(_t: f64, y: Vector3<f64>) -> Vector3<f64> { y }
|
fn derivative(_t: f64, y: Vector3<f64>) -> Vector3<f64> { y }
|
||||||
let y0 = Vector3::new(1.0, 1.0, 1.0);
|
let y0 = Vector3::new(1.0, 1.0, 1.0);
|
||||||
|
|
||||||
let ode = ODE::new(&derivative, 0.0, 5.0, y0);
|
let ode = ODE::new(&derivative, 0.0, 10.0, y0);
|
||||||
let dp45 = DormandPrince45::new(1e-12_f64, 1e-5_f64);
|
let dp45 = DormandPrince45::new(1e-12_f64, 1e-5_f64);
|
||||||
let controller = PIController::new();
|
let controller = PIController::default();
|
||||||
|
|
||||||
let value_too_high = Callback {
|
let value_too_high = Callback {
|
||||||
event: &|_: f64, y: SVector<f64,3>| { 10.0 - y[0] },
|
event: &|_: f64, y: SVector<f64,3>| { 10.0 - y[0] },
|
||||||
|
|||||||
Reference in New Issue
Block a user