home *** CD-ROM | disk | FTP | other *** search
- # COSXY.ODE - a fun system!
- # Try to explain the behaviour
-
- # Use 4th order Runge-Kutta, auto step size, 200 steps
- $m 4
- $n 200
-
- # Solve to 30
- $t 100
-
- # Initial values
- y = 5,4.8,4.6,4.4,4.2,4,3.8,3.6,3.4,3.2,3,2.8,2.6,2.4,2.2,2,1.8,1.6,1.4,1.2,1
- t = 0
-
- # Differential equations
- y' = cos(3.14159*t*y)
- t' = 1