24 January 2008 11:58:11 AM INT_EXACTNESS_GEN_HERMITE C++ version Investigate the polynomial exactness of a generalized Gauss-Hermite quadrature rule by integrating exponentially weighted monomials up to a given degree over the (-oo,+oo) interval. INT_EXACTNESS_GEN_HERMITE: User input: Quadrature rule X file = "gen_herm_o2_a1.0_x.txt". Quadrature rule W file = "gen_herm_o2_a1.0_w.txt". Quadrature rule R file = "gen_herm_o2_a1.0_r.txt". Maximum degree to check = 5 Power of |X|, ALPHA = 1 OPTION = 0, integrate |x|^alpha*exp(-x*x)*f(x) Spatial dimension = 1 Number of points = 2 The quadrature rule to be tested is a generalized Gauss-Hermite rule ORDER = 2 ALPHA = 1 OPTION = 0: Standard rule: Integral ( -oo < x < +oo ) |x|^alpha exp(-x*x) f(x) dx is to be approximated by sum ( 1 <= I <= ORDER ) w(i) * f(x(i)). Weights W: w[ 0] = 0.5 w[ 1] = 0.5 Abscissas X: x[ 0] = -1 x[ 1] = 1 Region R: r[ 0] = -1e+30 r[ 1] = 1e+30 A generalized Gauss-Hermite rule would be able to exactly integrate monomials up to and including degree = 3 Error Degree 0 0 0 1 0 2 0 3 0.5 4 0 5 INT_EXACTNESS_GEN_HERMITE: Normal end of execution. 24 January 2008 11:58:11 AM