function r8but_to_r8ge_test ( )

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

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8BUT_TO_R8GE_TEST\n' );
  fprintf ( 1, '  R8BUT_TO_R8GE converts a matrix from R8BUT to R8GE format.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N     = %d\n', n );
  fprintf ( 1, '  Upper bandwidth MU = %d\n', mu );

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

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

  a_r8ge = r8but_to_r8ge ( n, mu, a_r8but );

  r8ge_print ( n, n, a_r8ge, '  The R8GE matrix:' );

  return
end
