Numerics
The numerical methods of example_pkg: the equations each one implements, its order of accuracy, assumptions and references. Each card is declared on the code that implements it, checked by the tests, and also shown on the method's API page.
Time steps
Drift
classsourceMove the position at the current velocity.
- update
- Assumes
- velocity constant over the step
Kick
classsourceChange the velocity by the acceleration at the current position.
- update
Leapfrog
classsourceHalf a kick, a drift and half a kick: the velocity Verlet scheme.
- half kick
- drift
- kick
- energy
Grid
midpoint_integral
functionsourceThe integral of f on [start, stop] by the composite midpoint rule.
- rule
- error
- Order
- 2
- Assumes
- f twice continuously differentiable on [a, b]
- References
- Süli and Mayers, An Introduction to Numerical Analysis (2003), section 7.2