Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. y = [y, u];
  2. k1 = f(u);
  3. k2 = f(u + k1.*(h/2));
  4. k3 = f(u + k2.*(h/2));
  5. k4 = f(u + k3.*h);
  6.  
  7. u = u + (k1 + k2.*2 + k3.*2 + k4).*(h/6);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement