function perm_mul_test ( )

%*****************************************************************************80
%
%% perm_mul_test() tests perm_mul().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 December 2015
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'perm_mul_test():\n' );
  fprintf ( 1, '  perm_mul() multiplies two permutations.\n' );

  p = [ 3, 1, 2, 4 ];
  perm_print ( n, p, '  The permutation P:' );

  q = [ 2, 3, 1, 4 ];
  perm_print ( n, q, '  The permutation Q:' );
%
%  Multiply.
%
  r = perm_mul ( n, p, q );
  perm_print ( n, r, '  The product R = P * Q:' );

  return
end
