Hello Friends!
In this tutorial, you know how to solve the problem of the Newton Raphson Method on Scilab. This will help you in your academics and your class that way you can perform the Newton Raphson Method on your Scilab console. This is a better understanding of yours in Scilab and this Practical on your console.
This Entire tutorial helps you in this you get the code as well as a video form of the Newton Raphson Method.
| Newton Raphson Method |
YouTube link for Newton Raphson Method
link- https://youtu.be/i3-XR8pZGQk
👉Code-
clc;clear; disp("Newton Raphson Method") deff('y=f(x)','y=x*exp(x)-cos(x)') deff('z=g(x)','z=exp(x)+x*exp(x)+sin(x)') x0=0 for i=1:10 c=x0-f(x0)/g(x0) x0=c disp([i,c]) end disp(c,'root of the equation after 10 iteration is')
👉Output-
"Newton Raphson Method"
1. 1.
2. 0.6530794
3. 0.5313434
4. 0.5179099
5. 0.5177574
6. 0.5177574
7. 0.5177574
8. 0.5177574
9. 0.5177574
10. 0.5177574
0.5177574
"root of the equation after 10 iterations is"
Thanks
Keep Visiting to Red Code
1 Comments
Thank you ❤️💐
ReplyDeleteThanks for comment ! we get touch with you soon.