function r8sd_dif2_test ( )

%*****************************************************************************80
%
%% R8SD_DIF2_TEST tests R8SD_DIF2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  ndiag = 2;
  offset = [ 0, 1 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8SD_DIF2_TEST\n' );
  fprintf ( 1, '  R8SD_DIF2 sets up a R8SD second difference matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N =         %d\n', n );
  fprintf ( 1, '  Matrix diagonals NDIAG = %d\n', ndiag );

  a = r8sd_dif2 ( n, ndiag, offset );

  r8sd_print ( n, ndiag, offset, a, '  The R8SD matrix:' );

  return
end
