function v_polynomial_zeros_test ( )

%*****************************************************************************80
%
%% v_polynomial_zeros_test() tests v_polynomial_zeros().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 July 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'V_POLYNOMIAL_ZEROS_TEST:\n' );
  fprintf ( 1, '  V_POLYNOMIAL_ZEROS computes the zeros of V(n,x);\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     N      X         V(n,x)\n' );

  for n = 1 : 5

    x = v_polynomial_zeros ( n );
    fx = v_polynomial ( n, n + 1, x );

    fprintf ( 1, '\n' );
    for i = 1 : n
      fprintf ( 1, '  %4d  %8.4f  %14.6g\n', i, x(i), fx(i,n+1) );
    end

  end

  return
end
