function hyper_2f1_real_test ( )

%*****************************************************************************80
%
%% hyper_2f1_real_test() tests hyper_2f1().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 December 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'hyper_2f1_real_test():\n' );
  fprintf ( 1, '  Test hyper_2f1() with real arguments.\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, a, b, c, x, fx1 ] = hyper_2f1_real_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fx2 = hyper_2f1 ( a, b, c, x );

    fprintf ( 1, '\n' );
    fprintf ( 1, '  A,B,C,X:      %8f  %8f  %8f  %8f\n', a, b, c, x );
    fprintf ( 1, '  FX exact:     %24.16g\n', fx1 );
    fprintf ( 1, '  FX computed:  %24.16g\n', fx2 );
    fprintf ( 1, '  Error:        %24.16g\n', abs ( fx1 - fx2 ) );

  end

  return
end
