function r8vec_blend_test ( )

%*****************************************************************************80
%
%% R8VEC_BLEND_TEST tests R8VEC_BLEND.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_BLEND_TEST:\n' );
  fprintf ( 1, '  R8VEC_BLEND blends two vectors.\n' );

  n = 3;

  v1 = [ 1.0; 2.0; 3.0 ];
  v2 = [ 0.0; 5.0; 10.0 ];
  r8vec2_print ( n, v1, v2, '  V1 and V2:' );

  for i = 1 : 3
    t1 = i / 4.0;
    t2 = 1.0 - t1;
    v3 = r8vec_blend ( n, t1, v1, t2, v2 );
    label = sprintf ( '  T1 = %g, T2 = %g\n', t1, t2 );
    r8vec3_print ( n, v1, v3, v2, label );
  end

  return
end
