function q8_multiply2_test ( )

%*****************************************************************************80
%
%% q8_multiply2_test() tests Q8_MULTIPLY2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'q8_multiply2_test():\n' );
  fprintf ( 1, '  Q8_MULTIPLY2 multiplies two quaternions using a matrix;\n' );

  for i = 1 : 5

    q1 = q8_normal_01 ( );
    q2 = q8_normal_01 ( );
    q3 = q8_multiply2 ( q1, q2 );

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

  end

  return
end
