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 to Implement a Binary search tree library with above six operations | DS - IProgramX
July 14, 2018
Write a menu driven program to perform the array operations | PHP - IProgramX
August 08, 2018
PHP script to keep track of number of times the web page has been access - PHP | IProgramX
January 14, 2019
Powered by Blogger
0 Comments