summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/ODE.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2014-04-30 16:10:20 +0200
committerAlberto Ruiz <aruiz@um.es>2014-04-30 16:10:20 +0200
commitcf1379fed234cf99b2ccce6d9311bfc5c58ef4a3 (patch)
tree2532837500eb98af048404e33018fa88d8a7f535 /lib/Numeric/GSL/ODE.hs
parentb8b7b47450a1007d4d8c77bb7d04e2744c3bfcd4 (diff)
improved documentation
Diffstat (limited to 'lib/Numeric/GSL/ODE.hs')
-rw-r--r--lib/Numeric/GSL/ODE.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Numeric/GSL/ODE.hs b/lib/Numeric/GSL/ODE.hs
index ab037bd..9a29085 100644
--- a/lib/Numeric/GSL/ODE.hs
+++ b/lib/Numeric/GSL/ODE.hs
@@ -13,9 +13,10 @@ Solution of ordinary differential equation (ODE) initial value problems.
13 13
14A simple example: 14A simple example:
15 15
16@import Numeric.GSL 16@
17import Numeric.GSL.ODE
17import Numeric.LinearAlgebra 18import Numeric.LinearAlgebra
18import Graphics.Plot 19import Numeric.LinearAlgebra.Util(mplot)
19 20
20xdot t [x,v] = [v, -0.95*x - 0.1*v] 21xdot t [x,v] = [v, -0.95*x - 0.1*v]
21 22
@@ -23,7 +24,8 @@ ts = linspace 100 (0,20 :: Double)
23 24
24sol = odeSolve xdot [10,0] ts 25sol = odeSolve xdot [10,0] ts
25 26
26main = mplot (ts : toColumns sol)@ 27main = mplot (ts : toColumns sol)
28@
27 29
28-} 30-}
29----------------------------------------------------------------------------- 31-----------------------------------------------------------------------------