function r8poly2_rroot_test ( )

%*****************************************************************************80
%
%% R8POLY2_RROOT_TEST tests R8POLY2_RROOT.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 December 2016
%
%  Author:
%
%    John Burkardt
%
  test_num = 5;

  a_test = [  2.0,    1.0,  1.0, 1.0,  1.0 ];
  b_test = [ -2.0,  -20.0, -2.0, 0.0, -6.0 ];
  c_test = [ -24.0, 100.0, 10.0, 1.0, 10.0 ];
 
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8POLY2_RROOT_TEST\n' );
  fprintf ( 1, '  R8POLY2_RROOT finds the real parts of quadratic equation roots.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '         A         B         C     R1         R2\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num

    a = a_test(test);
    b = b_test(test);
    c = c_test(test);

    [ r1, r2 ] = r8poly2_rroot ( a, b, c );
 
    fprintf ( 1, '  %9f  %9f  %9f  %9f  %9f\n', a, b, c, r1, r2 );
 
  end
 
  return
end
