function hermite_polynomial_test04 ( )

%*****************************************************************************80
%
%% hermite_polynomial_test04() tests h_polynomial_zeros().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 February 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'hermite_polynomial_test04():\n' );
  fprintf ( 1, '  h_polynomial_zeros() computes the zeros of H(n,x);\n' );
  fprintf ( 1, '  Check by calling h_polynomial() there.\n' );

  for degree = 1 : 5

    z = h_polynomial_zeros ( degree );
    my_title = sprintf ( '  Computed zeros for H(%d,z):', degree );
    r8vec_print ( degree, z, my_title );

    hz = h_polynomial_value ( degree, degree + 1, z );
    my_title = sprintf ( '  Evaluate H(%d,z):', degree );
    r8vec_print ( degree, hz(1:degree,degree+1), my_title );

  end

  return
end
