function r8vm_det_test ( )

%*****************************************************************************80
%
%% R8VM_DET_TEST tests R8VM_DET.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 August 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VM_DET_TEST\n' );
  fprintf ( 1, '  R8VM_DET, determinant of an R8VM matrix.\n' );
%
%  Set the matrix.
%
  n = 5;
  a = r8vm_indicator ( n, n );

  r8vm_print ( n, n, a, '  The Vandermonde matrix:' );
%
%  Compute the determinant.
%
  det1 = r8vm_det ( n, a );
%
%  Get the exact value.
%
  det2 = r8vm_indicator_det ( n );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  R8VM_DET = %14.6g\n', det1 );
  fprintf ( 1, '  Exact =    %14.6g\n', det2 );

  return
end
