function r8vec_norm_affine_test ( )

%*****************************************************************************80
%
%% R8VEC_NORM_AFFINE_TEST tests R8VEC_NORM_AFFINE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 June 2015
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_NORM_AFFINE_TEST\n' );
  fprintf ( 1, '  R8VEC_NORM_AFFINE computes the L2 norm of\n' );
  fprintf ( 1, '  the difference of two R8VECs.\n' );

  r8_lo = - 5.0;
  r8_hi = +10.0;
  seed = 123456789;

  [ x, seed ] = r8vec_uniform_ab ( n, r8_lo, r8_hi, seed );
  [ y, seed ] = r8vec_uniform_ab ( n, r8_lo, r8_hi, seed );
  z(1:n) = x(1:n) - y(1:n);

  fprintf ( 1, '\n' );
  fprintf ( 1, '  R8VEC_NORM_AFFINE(X,Y) = %g\n', r8vec_norm_affine ( n, x, y ) );
  fprintf ( 1, '  R8VEC_NORM (X-Y):        %g\n', r8vec_norm ( n, z ) );

  return
end
