function r83_dif2_test ( )

%*****************************************************************************80
%
%% r83_dif2_test() tests r83_dif2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 August 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83_DIF2_TEST\n' );
  fprintf ( 1, '  R83_DIF2 sets an R83 matrix to the second difference.\n' );
  fprintf ( 1, '  We check three cases, M<N, M=N, M>N.\n' );

  for i = 1 : 3

    if ( i == 1 )
      m = 3;
      n = 5;
    elseif ( i == 2 )
      m = 5;
      n = 5;
    elseif ( i == 3 )
      m = 5;
      n = 3;
    end

    a = r83_dif2 ( m, n );
    r83_print ( m, n, a, '  Second difference in R83 format:' );

  end

  return
end
