function q8_exponentiate_test ( )

%*****************************************************************************80
%
%% q8_exponentiate_test() tests q8_exponentiate().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'q8_exponentiate_test():\n' );
  fprintf ( 1, '  q8_exponentiate() exponentiates a quaternion;\n' );

  for i = 1 : 5

    q1 = q8_normal_01 ( );
    q2 = q8_exponentiate ( q1 );

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

  end

  return
end
