home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
science
/
ode.arj
/
COSXY.ODE
< prev
next >
Wrap
Text File
|
1990-02-02
|
324b
|
18 lines
# 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