function tridiagonal_test ( )

%*****************************************************************************80
%
%% TRIDIAGONAL_TEST calls PRAXIS for the Tridiagonal function.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    31 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'TRIDIAGONAL_TEST\n' );
  fprintf ( 1, '  The Tridiagonal function.\n' );

  t0 = 0.00001;
  h0 = 8.0;
  prin = 0;

  x = zeros ( n, 1 );

  r8vec_print ( n, x, '  Initial point:' );

  fprintf ( 1, '  Function value = %g\n', tridiagonal_f ( x, n ) );

  [ pr, x ] = praxis ( t0, h0, n, prin, x, @tridiagonal_f );

  r8vec_print ( n, x, '  Computed minimizer:' );

  fprintf ( 1, '  Function value = %g\n', tridiagonal_f ( x, n ) );

  return
end
