From 2b68445d744db236a574f9ed9d76ef76cf04cd96 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 21 Jul 2009 17:41:33 +0200 Subject: [PATCH] Added some documentation to EulerIntegrator. --- src/net/habraun/sd/EulerIntegrator.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net/habraun/sd/EulerIntegrator.scala b/src/net/habraun/sd/EulerIntegrator.scala index 53dab51..daa3c28 100644 --- a/src/net/habraun/sd/EulerIntegrator.scala +++ b/src/net/habraun/sd/EulerIntegrator.scala @@ -24,6 +24,12 @@ import math._ +/** + * A simple integrator using Euler integration. + * Euler integration is simple, cheap and inaccurate. If accuracy is needed, another integration method + * should be used, especially since the inaccuracies add up over time. + */ + class EulerIntegrator extends Integrator { def apply(t: Double, body: Body) = { -- 2.11.4.GIT