Professional Documents
Culture Documents
SCILAB
SCILAB
SCILAB
')
2 disp('Name: AARTI PARULKAR')
3 disp('Class: FE INFT-B')
4 disp( 'Roll no. 719')
5 disp('
')
6 11 Input
7 d e f f ' y = f ( x ) ' , 'y = = x^3 5*x +
3')
8
deff('y=df (x) ' 'y , 3*x^2 -
5')
9 XX=0;//previous root
10 x=1;// next root
11 i=0;
12 eps=0.0001;// permissible error
13 disp("Using Newton Raphson
method roots');
14 while(abs (x-Xx)>=eps)
15 z=x-(f(x)/df(x));
16 disp('iteration: '+string(i)+'
'+String (z));
17 xX=X;
18 x-Z
19 i=i+1;
20 end
21 dispRoot of the equation
using Newton- Raphson method is
x='+string(x)) ;
Name: AARTI PARULKAR
Class: FE INFT-B
Roll no. 719