function r8vec_cross_product_2d_test ( )

%*****************************************************************************80
%
%% r8vec_cross_product_2d_test() tests r8vec_cross_product_2d().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_CROSS_PRODUCT_2D_TEST:\n' );
  fprintf ( 1, '  R8VEC_CROSS_PRODUCT_2D computes the cross product of two R8VEC''s.\n' );

  n = 2;
  v1 = [ 1.0; 0.5 ];
  r8vec_print ( n, v1, '  Vector V1:' );

  for i = 0 : 12
    angle = 2 * i * pi / 12;
    r = 10.0 * rand ( 1, 1 );
    v2 = r * [ cos(angle); sin(angle) ];
    r8vec_print ( n, v2, '  Vector V2:' );
    value = r8vec_cross_product_2d ( v1, v2 );
    fprintf ( 1, '  V1xV2 = %g\n', value );
  end

  return
end
