Home
About
Disclaimer
Privacy Policy
Home-icon
FYBCS
_C
_HTML & CSS
SYBCS
_DS
_SCILAB
TYBCS
_JAVA
_PHP
_PHP Solve Slips
_PHP Project Topics
_OS/SysPro Slips
Download Apk
Tech Info
Home
Scilab
Scilab Program - newton raphson method for loop - IProgramX
Scilab Program - newton raphson method for loop - IProgramX
by -
IProgram X
on -
July 05, 2018
Program
function[]=nf(x,n,f)
for i=1:n
if(derivative(f,x)<>0)
x=x-f(x)/derivative(f,x)
end
end
printf('root by newton raphson method=%f',x)
endfunction
Output:
-->deff('y=f(x)','y=x*exp(x)-2')
-->nf(2,50,f)
root by newton raphson method=0.852606
Post a Comment
0 Comments
Social Plugin
Popular Posts
C Program - Write a menu driven program to perform the following operations on a square matrix - IProgramX
June 27, 2018
Create an html5 page of My City | HTML & CSS - IProgramX
August 09, 2018
C Program to search an element in an array using functions - IProgramX
July 02, 2018
Powered by Blogger
0 Comments