function blend_rs_1dn_identity_test ( )

%*****************************************************************************80
%
%% blend_rs_1dn_identity_test() checks for a gross error in the blend coefficients.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blend_rs_1dn_identity_test():\n' );
  fprintf ( 1, '  Simple identity test to detect gross errors.\n' );
%
%  Set N to 2.
%
  n = 2;
%
%  Test BLEND_RS_1DN on identity.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'Identity test for BLEND_RS_1DN:\n' );
  fprintf ( 1, '\n' );
  r = 0.0;
  s = 0.0;
  x = blend_rs_1dn ( r, s, n, @identity_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, @identity_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, @identity_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, @identity_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, @identity_rs );
  fprintf ( 1, '  %8f  %8f  %8f  %8f\n', r, s, x(1:2) );

  return
end
