function r8_exp_test ( )

%*****************************************************************************80
%
%% R8_EXP_TEST tests R8_EXP.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 July 2018
%
%  Author:
%
%    John Burkardt
%

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_EXP_TEST\n' );
  fprintf ( 1, '  R8_EXP evaluates the exponential function of R8.\n' );
  fprintf ( 1, '  It truncates very small or large arguments.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      X         R8_EXP(X)\n' );
  fprintf ( 1, '\n' );

  x_test = [ -100.0, -75.0, -50.0, -25.0, -1.0, 0.0, +1.0, 25.0, 50.0, 75.0, 100.0 ];

  for i = 1 : 11
    x = x_test(i);
    value = r8_exp ( x );
    fprintf ( 1, '  %10.6g  %10.6g\n', x, value );
  end

  return
end
