function r8_is_inf_test ( )

%*****************************************************************************80
%
%% R8_IS_INF_TEST tests R8_IS_INF.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 May 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_IS_INF_TEST\n' );
  fprintf ( 1, '  R8_IS_INF reports whether an R8 is infinite.\n' );
  fprintf ( 1, '\n' );

  r8 = 1.0;
  fprintf ( 1, '  R8_IS_INF(1.0) = %d\n', r8_is_inf ( r8 ) );

  r1 = 1.0;
  r2 = 0.0;
  r8 = r1 / r2;
  fprintf ( 1, '  R8_IS_INF(1.0/0.0) = %d\n', r8_is_inf ( r8 ) );

  r1 = 0.0;
  r2 = 0.0;
  r8 = r1 / r2;
  fprintf ( 1, '  R8_IS_INF(0.0/0.0) = %d\n', r8_is_inf ( r8 ) );

  r1 = 0.0;
  r2 = 0.0;
  r8 = r1 ^ r2;
  fprintf ( 1, '  R8_IS_INF(0^0) = %d\n', r8_is_inf ( r8 ) );

  r1 = -2.0;
  r8 = acos ( r1 );
  fprintf ( 1, '  R8_IS_INF(acos(-2)) = %d\n', r8_is_inf ( r8 ) );

  r1 = 1000.0;
  r8 = exp ( r1 );
  fprintf ( 1, '  R8_IS_INF(exp(1000)) = %d\n', r8_is_inf ( r8 ) );

  r1 = 0.0;
  r8 = log ( r1 );
  fprintf ( 1, '  R8_IS_INF(log(0)) = %d\n', r8_is_inf ( r8 ) );

  r1 = -1.0;
  r8 = sqrt ( r1 );
  fprintf ( 1, '  R8_IS_INF(sqrt(-1)) = %d\n', r8_is_inf ( r8 ) );

  return
end