Euler method
In this tutorial, you can find to solve the Euler method in the Scilab. In which you can easily be able to solve the Euler method on your console of the Scilab. So, friends please open your Scilab and start implementing the same on the Scilab. And if you have doubt then comment.
| Euler method |
Here you get code as well as output and the youtube link for Euler method.
YouTube-https://youtu.be/l5-QP-90PCc
👉Code:-
clc;clear disp("Euler method") deff('z=f(x,y)','z=x-y^2') x0=0;y0=0.1;xn=1;h=0.1;n=(xn-x0)/h for i=1:n y1=y0+h*f(x0,y0) x0=x0+h disp([x0,y1]) y0=y1 end
👉OutPut:-"Euler method" 0.1 0.099 0.2 0.1080199 0.3 0.1268531 0.4 0.1552439 0.5 0.1928338 0.6 0.2391153 0.7 0.2933977 0.8 0.3547895 0.9 0.4222019 1. 0.4943765
Thanks for visiting.
Red code
0 Comments
Thanks for comment ! we get touch with you soon.