%MATLAB script for the calculations for Example 4.13 on page 195 of conte/deboor
% the matrix B from example 4.11 on page 191 of conte/deboor
%
%  Reference:
%
%    Samuel Conte, Carl de Boor,
%    Elementary Numerical Analysis,
%    Third Edition,
%    SIAM, 2017,
%    ISBN: 978-1-611975-19-2.
%
B = [1 2 0; 2 1 0; 0 0 -1];
% using the initial guesses suggested in the example, we get
[EVALUE,VECTOR,IFLAG] = INVITR(B, 3.0165, ones(3,1))
% using an initial guess of 0, we try to catch a smallest eigenvalue of B
[EVALUE,VECTOR,IFLAG] = INVITR(B, 0, ones(3,1))
