function q8_exponentiate_test ( )

%*****************************************************************************80
%
%% Q8_EXPONENTIATE_TEST tests Q8_EXPONENTIATE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    23 July 2018
%
%  Author:
%
%    John Burkardt
%
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'Q8_EXPONENTIATE_TEST\n' );
  fprintf ( 1, '  Q8_EXPONENTIATE exponentiates a quaternion;\n' );

  for i = 1 : 5

    [ q1, seed ] = q8_normal_01 ( seed );
    q2 = q8_exponentiate ( q1 );

    fprintf ( 1, '\n' );
    q8_transpose_print ( q1, '  q1 = q8_normal_01 ( seed ):' );
    q8_transpose_print ( q2, '  q2 = q8_exponentiate ( q1 ):' );  

  end

  return
end
