function r8_sigmoid_test ( )

%*****************************************************************************80
%
%% R8_SIGMOID_TEST tests R8_SIGMOID.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 August 2018
%
%  Author:
%
%    John Burkardt
%

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_SIGMOID_TEST\n' );
  fprintf ( 1, '  R8_SIGMOID evaluates the sigmoid function of R8.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      X         R8_SIGMOID(X)\n' );
  fprintf ( 1, '\n' );

  x_test = [ -4.0, -2.0, -1.0, -0.5, -0.25, 0.0, 0.25, 0.50, 1.0, 2.0, 4.0 ];

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

  return
end
