Browse Source

More documentation

tags/v0.6.2b
Andrew Belt 6 years ago
parent
commit
eeaf7eef83
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/dsp/ode.hpp

+ 1
- 1
include/dsp/ode.hpp View File

@@ -9,7 +9,7 @@ namespace ode {
void f(float t, const float x[], float dxdt[])

A capturing lambda is ideal for this.
For example,
For example, the following solves the system x''(t) = -x(t) using a fixed timestep of 0.01 and initial conditions x(0) = 1, x'(0) = 0.

float x[2] = {1.f, 0.f};
float dt = 0.01f;


Loading…
Cancel
Save