Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [y] = Euler()
- y = 5;
- x = 0;
- h = 0.1;
- fxy = 3.5 * x * y + 2 * x - 1.5;
- dy = h * fxy;
- for i = 0:5
- y = y + dy;
- x = x + h;
- fxy = 3.5 * x * y + 2 * x - 1.5;
- dy = h * fxy;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement