function permutation_symbol_test ( )

%*****************************************************************************80
%
%% PERMUTATION_SYMBOL_TEST tests PERMUTATION_SYMBOL.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 September 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PERMUTATION_SYMBOL_TEST\n' );
  fprintf ( 1, '  PERMUTATION_SYMBOL evaluates the Levi-Civita permutation symbol.\n' );

  n = 5;
  a = [ 1, 2, 3, 4, 5 ];
  i4vec_transpose_print ( n, a, '  Input vector:' );
  value = permutation_symbol ( n, a );
  fprintf ( 1, '  Levi-Civita permutation symbol = %d\n', value );

  n = 5;
  a = [ 4, 2, 3, 1, 5 ];
  i4vec_transpose_print ( n, a, '  Input vector:' );
  value = permutation_symbol ( n, a );
  fprintf ( 1, '  Levi-Civita permutation symbol = %d\n', value );

  n = 5;
  a = [ 1, 2, 3, 4, 2 ]; 
  i4vec_transpose_print ( n, a, '  Input vector:' );
  value = permutation_symbol ( n, a );
  fprintf ( 1, '  Levi-Civita permutation symbol = %d\n', value );
 
  return
end
