summaryrefslogtreecommitdiff
path: root/243/CH6/EX6.15/6_15.sce
blob: 097503f8e1eee537d41d1ca1c57a692252ca6ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example No. 6_15
//Synthetic Division
//Pg No. 176
clear ; close ; clc ;

a = [-9 15 -7 1];
b(4) = 0 ;
for i = 3:-1:1
    b(i) = a(i+1) + b(i+1)*3
    printf('b%i = %f\n',i,b(i))
end
    disp(poly(b,'x','c'),'Thus the polynomial is')