function r8pp_det_test ( )

%*****************************************************************************80
%
%% R8PP_DET_TEST tests R8PP_DET.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 June 2016
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8PP_DET_TEST\n' );
  fprintf ( 1, '  R8PP_DET computes the determinant of an R8PP matrix\n' );
  fprintf ( 1, '  which has been factored by R8PP_FA.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
%
%  Set the matrix.
%
  a = r8pp_dif2 ( n );
  r8pp_print ( n, a, '  The R8PP matrix:' );
 
  r = r8pp_fa ( n, a );

  det = r8pp_det ( n, r );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Computed determinant = %g\n', det );
  fprintf ( 1, '  Exact determinant = %g\n', n + 1 );
  return
end
