function r8_sigmoid_test ( )

%*****************************************************************************80
%
%% r8_sigmoid_test() tests r8_sigmoid().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 October 2019
%
%  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(L,B,M,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 ];

  l = 1.0;
  b = 0.0;
  m = 1.0;

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

  return
end
