07-Jan-2022 17:59:44 chebyshev1_exactness_test: MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2. Test chebyshev1_exactness. 07-Jan-2022 17:59:44 CHEBYSHEV1_EXACTNESS MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Investigate the polynomial exactness of a Gauss-Chebyshev1 type 1 quadrature rule by integrating all monomials up to a given degree over the [-1,+1] interval. CHEBYSHEV1_EXACTNESS: User input: Quadrature rule X file = "cheby1_o4_x.txt". Quadrature rule W file = "cheby1_o4_w.txt". Quadrature rule R file = "cheby1_o4_r.txt". Maximum degree to check = 10 Spatial dimension = 1 Number of points = 4 The quadrature rule to be tested is a Gauss-Chebyshev type 1 rule ORDER = 4 Standard rule: Integral ( -1 <= x <= +1 ) f(x) / ( 1 - x^2 ) dx is to be approximated by sum ( 1 <= I <= ORDER ) w(i) * f(x(i)). Weights W: w(1) = 0.7853981633974483 w(2) = 0.7853981633974483 w(3) = 0.7853981633974483 w(4) = 0.7853981633974483 Abscissas X: x(1) = -0.9238795325112867 x(2) = -0.3826834323650897 x(3) = 0.3826834323650898 x(4) = 0.9238795325112867 Region R: r(1) = -1.000000e+00 r(2) = 1.000000e+00 A Gauss-Chebyshev type 1 rule would be able to exactly integrate monomials up to and including degree = 7 Error Degree 0.0000000000000000 0 0.0000000000000000 1 0.0000000000000000 2 0.0000000000000000 3 0.0000000000000000 4 0.0000000000000000 5 0.0000000000000001 6 0.0000000000000000 7 0.0285714285714287 8 0.0000000000000000 9 0.0793650793650794 10 CHEBYSHEV1_EXACTNESS: Normal end of execution. 07-Jan-2022 17:59:44 chebyshev1_exactness_test: Normal end of execution. 07-Jan-2022 17:59:44