Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function [y] = Euler()
  2. y = 5;
  3. x = 0;
  4. h = 0.1;
  5.  
  6. fxy = 3.5 * x * y + 2 * x - 1.5;
  7. dy = h * fxy;
  8.  
  9. for i = 0:5
  10. y = y + dy;
  11. x = x + h;
  12. fxy = 3.5 * x * y + 2 * x - 1.5;
  13. dy = h * fxy;
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement