function uniform_in_annulus_test ( )

%*****************************************************************************80
%
%% uniform_in_annulus_test() tests uniform_in_annulus().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 April 2022
%
%  Author:
%
%    John Burkardt
%
  n = 1000;
  pc = [ 10.0, 5.0 ];
  r1 = 1.0;
  r2 = 3.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'uniform_in_annulus_test():\n' );
  fprintf ( 1, '  uniform_in_annulus() generates uniform \n' );
  fprintf ( 1, '  points in an annulus by mapping.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of points N =          %12d\n', n );
  fprintf ( 1, '  Center PC(1:2) =              %12f  %12f\n', pc(1:2) );
  fprintf ( 1, '  Inner radius is R1 =          %12f\n', r1 );
  fprintf ( 1, '  Outer radius is R2 =          %12f\n', r2 );

  p = uniform_in_annulus ( n, pc, r1, r2 );
%
%  Make a plot.
%
  clf ( );
  plot ( p(:,1), p(:,2), 'b.' );
  grid ( 'on' );
  axis ( 'equal' );
  xlabel ( '<--- X --->' );
  ylabel ( '<--- Y --->' );
  title ( 'uniform\_in\_annulus()' );
  filename = 'uniform_in_annulus.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s".\n', filename );

  return
end
