function ij_to_xy_test ( )

%*****************************************************************************80
%
%% ij_to_xy_test tests ij_to_xy().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ij_to_xy_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  ij_to_xy converts a point''s (i,j) coordinates to (x,y).\n' );
%
%  Check the 4x5 parallelogram
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  (I,J)    (X,Y)\n' );
  for j = 0 : 4
    fprintf ( 1, '\n' );
    for i = 0 : 5
      xy = ij_to_xy ( [ i, j ] );
      fprintf ( 1, '  (%d,%d)   (%f,%f)\n', i, j, xy(1), xy(2) );
    end
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ij_to_xy_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
