function quaternions_test ( )

%*****************************************************************************80
%
%% quaternions_test tests quaternions.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    15 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../quaternions' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'quaternions_test\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test quaternions.\n' );

  degrees_to_radians_test ( );

  q8_conjugate_test ( );
  q8_exponentiate_test ( );
  q8_inverse_test ( );
  q8_multiply_test ( );
  q8_multiply2_test ( );
  q8_norm_test ( );
  q8_normal_01_test ( );
  q8_transpose_print_test ( );

  r8_acos_test ( );

  r8vec_uniform_01_test ( );

  radians_to_degrees_test ( );

  rotation_axis_vector_test ( );
  rotation_axis2mat_test ( );
  rotation_axis2quat_test ( );

  rotation_mat_vector_test ( );
  rotation_mat2axis_test ( );
  rotation_mat2quat_test ( );

  rotation_quat_vector_test ( );
  rotation_quat2axis_test ( );
  rotation_quat2mat_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'quaternions_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../quaternions' );

  return
end
