edit horner.m
zeros(3,1)
b = [1;2;3;4]
b(2)
b(end)
b(:)
b(1:2)
A = [1 2 3; 4 5 6]
A(:,2)
A(1:2,2)
A(2,:)
A
A(2,1)
help horner
a = [5 -1 7 -4];
horner(a)
horner(a, 3)
help polyval
polyval(a, 3)
[y, b] = horner(a, 3)
conv(b, [1 -3])
a
conv(b, [1 -3]) + [0 0 0 143]
conv(b, [1 -3])
conv(b, [1 -3]) + [0 0 0 143]'
conv(b, [1 -3]) + 143
p = [1 -6 11 -6]
[radici, iter] = newtonhorner(p, 4)
[radici, iter] = newtonhorner(p, 0)
quit
# Octave 3.6.4, Wed Nov 13 17:02:39 2013 W. Europe Standard Time <unknown@achilles-TOSH>
