function w_polynomial_zeros_test ( )

%*****************************************************************************80
%
%% W_POLYNOMIAL_ZEROS_TEST tests W_POLYNOMIAL_ZEROS.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 April 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'W_POLYNOMIAL_ZEROS_TEST:\n' );
  fprintf ( 1, '  W_POLYNOMIAL_ZEROS computes the zeros of W(n,x);\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     N      X         W(n,x)\n' );

  for n = 1 : 5

    x = w_polynomial_zeros ( n );
    fx = w_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
