SHARE
TWEET

Scilab, tracerk4 function

SilLAwNeD Dec 2nd, 2018 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function traceRK4(a, t0, T, Nrk4, Node)
  2.     // Approximation RK4
  3.     u = RK4(a, t0, T, Nrk4, vdp);
  4.    
  5.     // Approximation ODE
  6.     t = linspace(t0, T, Node+1);
  7.     x = ode(a, t0, t, vdp)
  8.    
  9.     plot(u(1,:), u(2,:));
  10.     plot(x(1,:), x(2,:), 'r');
  11.    
  12.     title('RK4');
  13. endfunction
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top