function phi_test ( )

%*****************************************************************************80
%
%% phi_test() tests phi().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'phi_test():\n' );
  fprintf ( 1, '  phi() computes the PHI function.\n' );
  fprintf ( 1, '\n'  );
  fprintf ( 1, '  N   Exact   PHI(N)\n' );
  fprintf ( 1, '\n' );
 
  n_data = 0;

  while ( true )

    [ n_data, n, c ] = phi_values ( n_data );

    if ( n_data == 0 )
      break
    end

    c2 = phi ( n );

    fprintf ( 1, '  %4d  %8d  %8d\n', n, c, c2 );

  end
 
  return
end
