summaryrefslogtreecommitdiff
path: root/50/CH4/EX4.4/ex_4_4.sce
blob: c31365e3066b4f6f16aa50470500b96cc181f227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
 // example 4.4
 // find the linear interpolation polinomial
 // using lagrange interpolation, 
 
 disp('sin(.1)=.09983; sin(.2)=.19867');
 
 
 P1=legrangeinterpol (.1,.2,.09983,.19867)
 
// hence; 
disp('P(.15)=.00099+.9884*.15')
disp('P(0.15)=0.14925');