function normal_01_cdf_inverse_test ( )

%*****************************************************************************80
%
%% normal_01_cdf_inverse_test() tests normal_01_cdf_inverse().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'normal_01_cdf_inverse_test():\n' );
  fprintf ( 1, '  normal_01_cdf_inverse() inverts the Normal 01 CDF.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    FX            X    NORMAL_01_CDF_INVERSE(FX)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, x1, fx ] = normal_01_cdf_values ( n_data );

    if ( n_data == 0 )
      break
    end

    x2 = normal_01_cdf_inverse ( fx );

    fprintf ( 1, '  %6f  %12f  %12f\n', fx, x1, x2 );

  end

  return
end
