fprintf ( 1, '\n' );
fprintf ( 1, 'multi_newton:\n' );
fprintf ( 1, '  Use Newton''s method to seek a root of the multi function.\n' );

x = 3.0;
xtol = 0.00001;
ftol = 0.00001;
itmax = 50;

[ x, it ] = newton ( @(x)multi(x), @(x)multi_fp(x), x, xtol, ftol, itmax );

fprintf ( 1, '\n' );
fprintf ( 1, '  Number of steps = %d\n', it );
fprintf ( 1, '  f(%g) = %g\n', x, multi(x) );

