function polynomial_resultant_values_test ( )

%*****************************************************************************80
%
%% polynomial_resultant_values_test() tests polynomial_resultanta_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 January 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polynomial_resultant_values_test():\n' );
  fprintf ( 1, '  polynomial_resultant_values() returns values of \n' );
  fprintf ( 1, '  the resultant R of polynomials P and Q.\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, p, q, r ] = polynomial_resultant_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '\n' );
    r8poly_print ( p, 'P(x):' );
    r8poly_print ( q, 'Q(x):' );
    fprintf ( 1, '   R:  %g\n', r );

  end

  return
end
