function r8_erf_test ( )

%*****************************************************************************80
%
%% r8_erf_test() tests r8_erf_test().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 January 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8_erf_test():\n' );
  fprintf ( 1, '  r8_erf() evaluates the error function.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'X   -> Y = r8_erf(X) -> Z = r8_erf_inv(Y)\n' );
  fprintf ( 1, '\n' );

  x = linspace ( -0.90, 0.90, 19 );

  for i = 1 : 19

    y = r8_erf ( x(i) );
    z = r8_erfinv ( y );
    fprintf ( 1, '  %14g  %14g  %14g\n', x(i), y, z );

  end

  return
end
