function detq_test ( )

%*****************************************************************************80
%
%% detq_test() tests detq().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 January 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'detq_test():\n' );
  fprintf ( 1, '  detq() computes the determinant of an orthogonal matrix.\n' );

  for n = 5 : 10

    a = helmert_matrix ( n );
    fprintf ( 1, '\n' );
    fprintf ( 1, '  Helmert matrix of order %d\n', n );
    if ( false )
      disp ( a );
    end
    d1 = helmert_determinant ( n );
    fprintf ( 1, '  determinant =      %g\n', d1 );
    [ d2, ifault ] = detq ( a, n );

    if ( ifault == 1 )
      fprintf ( 1, '  detq() failed for this case.\n' );
    else
      fprintf ( 1, '  detq() determinant = %g\n', d2 );
    end

  end

  return
end

