function r8_softplus_test ( )

%*****************************************************************************80
%
%% R8_SOFTPLUS_TEST tests R8_SOFTPLUS.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 September 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_SOFTPLUS_TEST\n' );
  fprintf ( 1, '  R8_SOFTPLUS evaluates the softplus function of an R8.\n' );
  fprintf ( 1, '  This is a smoothed version of max(x,0).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      X         R8_SOFTPLUS(X)\n' );
  fprintf ( 1, '\n' );

  x_test = [ ...
    -500.0,   -50.0,    -5.0,    -4.0,    -3.0, ...
      -2.0,    -1.0,    -0.5,    -0.05,    -0.005, ...
      -0.0005,  0.0,     0.0005,  0.005,    0.05, ...
       0.5,     1.0,     2.0,     3.0,      4.0, ...
       5.0,    50.0,   500.0,  5000.0,  50000.0 ];

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

  return
end
