function q8_multiply_test ( )

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

  fprintf ( 1, '\n' );
  fprintf ( 1, 'Q8_MULTIPLY_TEST\n' );
  fprintf ( 1, '  Q8_MULTIPLY multiplies two quaternions;\n' );

  for i = 1 : 5

    [ q1, seed ] = q8_normal_01 ( seed );
    [ q2, seed ] = q8_normal_01 ( seed );
    q3 = q8_multiply ( q1, q2 );

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

  end

  return
end
