function blend_rs_1dn_stretch_test ( )

%*****************************************************************************80
%
%% blend_rs_1dn_stretch_test() checks for simple errors in the blend coefficients.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blend_rs_1dn_stretch_test():\n' );
  fprintf ( 1, '  Shift and stretch test to detect simple errors.\n' );
%
%  Set N to 2.
%
  n = 2;
%
%  Test BLEND_RS_1D on shift by (1,2), stretch by (3,4).
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'Shift and stretch test for BLEND_RS_1DN:\n' );
  fprintf ( 1, '\n' );
  r = 0.0;
  s = 0.0;
  x = blend_rs_1dn ( r, s, n, @stretch_rs );
  fprintf ( 1, '  %8f  %8f  %8f  %8f\n', r, s, x(1:2) );

  r = 1.0;
  s = 0.0;
  x = blend_rs_1dn ( r, s, n, @stretch_rs );
  fprintf ( 1, '  %8f  %8f  %8f  %8f\n', r, s, x(1:2) );

  r = 0.0;
  s = 1.0;
  x = blend_rs_1dn ( r, s, n, @stretch_rs );
  fprintf ( 1, '  %8f  %8f  %8f  %8f\n', r, s, x(1:2) );

  r = 1.0;
  s = 1.0;
  x = blend_rs_1dn ( r, s, n, @stretch_rs );
  fprintf ( 1, '  %8f  %8f  %8f  %8f\n', r, s, x(1:2) );

  r = 0.5;
  s = 0.5;
  x = blend_rs_1dn ( r, s, n, @stretch_rs );
  fprintf ( 1, '  %8f  %8f  %8f  %8f\n', r, s, x(1:2) );

  return
end
