function rotation_mat_vector_test ( )

%*****************************************************************************80
%
%% ROTATION_MAT_VECTOR_TEST tests ROTATION_MAT_VECTOR.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 May 2005
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ROTATION_MAT_VECTOR_TEST\n' );
  fprintf ( 1, '  ROTATION_MAT_VECTOR applies a matrix\n' );
  fprintf ( 1, '  rotation to a vector.\n' );
 
  a = [ ...
    0.43301269,  0.25,       -0.86602539; ...
   -0.5,         0.86602539,  0.0; ...
    0.75,        0.43301269,  0.5 ];
  r8mat_print ( 3, 3, a, '  The rotation matrix:' );

  v = [ 1.0; 4.0; 10.0 ];
  r8vec_print ( 3, v, '  The vector V:' );

  w = rotation_mat_vector ( a, v );
  r8vec_print ( 3, w, '  The rotated vector W = A * V:' );

  return
end
