home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / demo / ode.zoo / cosxy.ode < prev    next >
Text File  |  1990-02-02  |  324b  |  18 lines

  1. # COSXY.ODE - a fun system!
  2. # Try to explain the behaviour
  3.  
  4. # Use 4th order Runge-Kutta, auto step size, 200 steps
  5. $m 4
  6. $n 200
  7.  
  8. # Solve to 30
  9. $t 100
  10.  
  11. # Initial values
  12. 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
  13. t = 0
  14.  
  15. # Differential equations
  16. y' = cos(3.14159*t*y)
  17. t' = 1
  18.