function r8but_det_test ( )

%*****************************************************************************80
%
%% R8BUT_DET_TEST tests R8BUT_DET.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 October 2015
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  mu = 3;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8BUT_DET_TEST\n' );
  fprintf ( 1, '  R8BUT_DET gets the determinant of an R8BUT matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N     = %d\n', n );
  fprintf ( 1, '  Upper bandwidth MU = %d\n', mu );

  [ a, seed ] = r8but_random ( n, mu, seed );

  r8but_print ( n, mu, a, '  The R8BUT matrix:' );

  det = r8but_det ( n, mu, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Determinant = %g\n', det );

  return
end
