function ci_test ( )

%*****************************************************************************80
%
%% ci_test() tests ci().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 March 2025
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ci_test():\n' );
  fprintf ( 1, '  ci() evaluates the Cosine Integral function CI(X).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '          X           CI(X)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, x, fx1 ] = ci_values ( n_data );

    if ( n_data == 0 )
      break
    end

    [ fx2, ~ ] = cisi ( x );

    fprintf ( 1, '  %14.6g  %24.16g  %24.16g\n', x, fx1, fx2 );

  end

  return
end
