Preprint
Article

Gauss Quadrature for Integrals and Sums

Altmetrics

Downloads

304

Views

73

Comments

0

A peer-reviewed article of this preprint also exists.

This version is not peer-reviewed

Submitted:

11 February 2023

Posted:

13 February 2023

Read the latest preprint version here

Alerts
Abstract
Gauss quadrature integral approximation is extended to include integrals with a measure consisting of a continuous as well as a discrete component. That is, we give an approximation for the integral of a function plus its sum over a discrete weighted set.
Keywords: 
Subject: Computer Science and Mathematics  -   Computational Mathematics

1. Introduction

Approximating integrals, especially intractable ones, by finite sums is as old of a problem as calculus itself. Most approximation procedures follow the structure of the original classic discretized approximation of the integral of a real function f(x) defined in x x x + as
x x + f ( x ) d x n = 0 N 1 Δ n f ( x n )
for some large enough integer N. The accuracy of the approximation and its convergence have always been at the core of the development of such approximation schemes. One of the most prominent techniques used in these approximations in the celebrated Gauss quadrature integral approximation [1,2,3]. It exploits the orthogonality and recursion relation of orthogonal polynomials. The quadrature has also been extended to the approximation of infinite sums (see, for example, [4] and [5] and references therein). In this work, we combine the two. That is, we propose an extended Gauss quadrature associated with integral measures that consist of discrete as well as continuous components. In Section 2, we summarize the conventional Gauss quadrature (GQ) integral approximation where the integration measure is purely continuous. In Section 3, we summarize GQ for approximating infinite sums by finite ones. Finally, in Section 4, we present our main findings where we combine the two.

2. The Conventional GQ: Purely Continuous Measure

Let f ( x ) be an integrable real valued function with respect to the positive measure d μ ( x ) =   ρ ( x ) d x in a real vector space, which is spanned by the complete set of orthonormal basis p n ( x ) n = 0 , where x [ x , x + ] . Orthogonality is defined as
x x + ρ ( x ) p n ( x ) p m ( x ) d x = δ n , m
This suggests that we could take p n ( x ) to be an orthogonal polynomial of degree n in x with pure continuous spectrum and where ρ ( x ) is the associated positive weight function [6,7,8]. The spectral theorem (a.k.a Favard’s theorem) dictates that such polynomials satisfy the following symmetric three-term recursion relation
x p n ( x ) = a n p n ( x ) + b n 1 p n 1 ( x ) + b n p n + 1 ( x )
for n = 1 , 2 , 3 , ... and where the “recursion coefficients” a n , b n are real constants such that b n 0 for all n 0 . This recursion gives all the polynomials of any degree starting with the two seed values p 0 ( x ) = 1 and p 1 ( x ) = ( x a 0 ) / b 0 (i.e., b 1 0 ). Associated with this space is an infinite dimensional real tridiagonal symmetric matrix (Jacobi matrix) whose elements are
J n , m = a n δ n , m + b n 1 δ n , m + 1 + b n δ n , m 1 = x x + ρ ( x ) p n ( x ) x p m ( x ) d x ,
J = a 0 b 0 b 0 a 1 b 1 b 1 a 2 b 2 × × × × ×
For numerical computations, however, the space is truncated to a finite N-dimensional subspace spanned by p n ( x ) n = 0 N 1 . The tridiagonal matrix (3) becomes a finite N×N matrix J. The real N distinct eigenvalues of J, which we designate as the set ε n n = 0 N 1 , are the zeros of the polynomial p N ( x ) [i.e. p N ( ε n ) = 0 ]. Let Λ m , n m = 0 N 1 be the normalized eigenvector of J associated with the eigenvalue ε n . In this setting, Gauss quadrature integral approximation states that [1,2,3]
x x + ρ ( x ) f ( x ) d x n = 0 N 1 ω n f ( ε n ) ,
where the “numerical weights” could be evaluated as ω n = Λ 0 , n 2 . Due to the lower numerical cost in computing matrix eigenvalues instead of eigenvectors, we can also write these numerical weights in terms of ε n n = 0 N 1 and another set of eigenvalues ε ^ m m = 0 N 2 as
ω n = m = 0 N 2 ε n ε ^ m k = 0 k n N 1 ε n ε k ,
where ε ^ m m = 0 N 2 is the set of eigenvalues of a submatrix of J obtained by deleting the first (zeroth) row and first column. If sorted, these eigenvalues interlace as ε 0 < ε ^ 0 < ε 1 < ε ^ 1 < ε 2 .... ε ^ N 2 < ε N 1 . The integral approximation (4) becomes exact if f ( x ) is a polynomial in x of a degree less than or equal to 2 N 1 . If, instead of the integral (4), we have x x + f ( x ) d x then this could be approximated as follows
x x + f ( x ) d x = x x + ρ ( x ) f ( x ) ρ ( x ) d x n = 0 N 1 ω n f ( ε n ) ρ ( ε n ) : = n = 0 N 1 ω ˜ n f ( ε n ) ,
where ω ˜ n are named the “derivative weights” and ω ˜ n = ω n / ρ ( ε n ) .
Very often, one encounters integrals that represent matrix elements of functions in the basis set ϕ n ( x ) = ρ ( x ) p n ( x ) (for example, the matrix elements of a potential function in quantum mechanics) of the form
f n , m = x x + ϕ n ( x ) f ( x ) ϕ m ( x ) d x = x x + ρ ( x ) p n ( x ) f ( x ) p m ( x ) d x .
Using Eq. (4), this integral is approximated as follows
f n , m k = 0 N 1 ω k p n ( ε k ) f ( ε k ) p m ( ε k ) ,
Now, it is well established that p n ( ε k ) = Λ n , k / Λ 0 , k for n , k = 0 , 1 , 2 , .. , N 1 . Therefore, with ω k = Λ 0 , k 2 this could be rewritten in matrix form as
f n , m k = 0 N 1 Λ n , k f ( ε k ) Λ m , k = Λ F Λ T n , m ,
where F is a diagonal matrix with elements F k , j = f ( ε k ) δ k , j . Therefore, to obtain an approximate evaluation of integrals using Gauss quadrature associated with orthogonal polynomials satisfying (1) and (2), one needs only the tridiagonal symmetric matrix J, which is constructed using the recursion coefficients a n , b n , and possibly the weight function ρ ( x ) for integrals of the type (6).

3. GQ for a Purely Discrete Measure

If instead of the integral x x + ρ ( x ) f ( x ) d x , we were tasked with approximating the infinite weighted sum k = 0 ξ k f ( x k ) , for a given discrete set ξ k , x k , by a finite sum similar to that of Eq. (4). Then, we could approach the solution to the problem as follows. We can convert the integral x x + ρ ( x ) f ( x ) d x into the sum k = 0 ξ k f ( x k ) by discretizing the weight function and writing ρ ( x ) = χ ( x ) k = 0 δ ( x x k ) with ξ k = χ ( x k ) . Performing this same weight function discretization in the orthogonality (1) turns it into
k = 0 ξ k p n ( x k ) p m ( x k ) = δ n , m .
There are many discrete polynomials that satisfy this kind of orthogonality. The Appendix lists relevant properties of few of these discrete hypergeometric orthogonal polynomials that belong to the Askey scheme [9]. Some of these polynomials constitute an infinite discrete sequence whereas others form finite sequences. Examples of the former are the Charlier and Meixner polynomials. Whereas examples of the latter include the Racah, dual Hahn and Krawtchouk polynomials [9]. All these polynomials do satisfy symmetric three-term recursion relations similar to (2) that read
x k p n ( x k ) = a n p n ( x k ) + b n 1 p n 1 ( x k ) + b n p n + 1 ( x k ) .
Consequently, we can write the following approximation
k = 0 M ξ k f ( x k ) n = 0 N 1 ω n f ( ε n ) ,
where M can be a finite or an infinite integer. However, typically M > > N otherwise the approximation is not called for. Moreover, the set ε n , ω k n = 0 N 1 in (12) are calculated using the tridiagonal symmetric matrix J obtained from (11) exactly as in Section 2 and shown by Eq. (3b). Additionally, the approximation (12) becomes exact if f ( x ) is a polynomial in x of a degree less than or equal to 2 N 1 . Here too, if instead of the sum (12) we have k = 0 M f ( x k ) , then we can write
k = 0 M f ( x k ) n = 0 N 1 ω ˜ n f ( ε n ) ,
where the derivative weights are calculated as ω ˜ n = ω n / χ ( ε n ) . As an example, we consider the function f ( x ) = r x / Γ ( x + 1 ) with ( x , r ) > 0 and obtain the approximation of its infinite sum (13) using GQ associated with the Charlier and Meixner polynomials. Since x k = k = 0 , 1 , 2 , ... for both polynomials, then the infinite sum has the exact value e r . Table 1 demonstrates the validity of formula (13) and illustrates the relative accuracy and convergence associated with the two polynomials for this particular function. In another example, we consider the finite sum (13) for the function f ( x ) = ( x + 1 ) r x + 1 / Γ ( x + r + 2 ) with M = 100 and employ GQ associated with the finite Krawtchouk polynomial. Since x k = k , then this finite sum has the following exact closed form (see formula 3, Section 1.3.9 in Ref. [6])
k = 0 M ( k + 1 ) r k + 1 Γ ( k + r + 2 ) = 1 Γ ( r ) r M + 2 Γ ( M + r + 2 ) .
Table 2 demonstrates the validity of formula (13) and illustrates its accuracy as well as its convergence as we vary N and the polynomial parameter γ.

4. GQ for a Measure with a Mix of Continuous and Discrete Spectra

If the integral measure d μ ( x ) = ρ ( x ) d x contains a mix of discrete as well as continuous spectra, then the weight function could be written as follows
ρ ( x ) = σ ( x ) + χ ( x ) k = 0 M δ ( x x k ) ,
where σ ( x ) is the continuous component of the weight function and χ ( x k ) : = ξ k is the discrete component. The discrete spectrum (a.k.a mass points) is the set x k k = 0 M of size M + 1 , which could be finite or infinite. The orthogonality (1) becomes [6,7,8]
x x + σ ( x ) p n ( x ) p m ( x ) d x + k = 0 M ξ k p n ( x k ) p m ( x k ) = δ n , m .
These polynomials do also satisfy a symmetric three-term recursion relation similar to (2) where the associated tridiagonal symmetric matrix J is endowed with both continuous as well as discrete eigenvalues. Appendix A lists the relevant properties of two of these hypergeometric orthogonal polynomials that belong to the Askey scheme [9].
If the function f ( x ) is defined over x [ x , x + ] x k k = 0 M then Gauss quadrature integral approximation (4) could be extended to read
x x + σ ( x ) f ( x ) d x + k = 0 M ξ k f ( x k ) n = 0 N 1 ω n f ( ε n ) ,
where the set ε n , ω k n = 0 N 1 in (17) are calculated using the tridiagonal symmetric matrix J exactly as in Section 2. Here too, the integral approximation (17) becomes exact if f ( x ) is a polynomial in x of a degree less than or equal to 2 N 1 . If the sum in (17) is finite such that M is of the same order as N (i.e., M < N ), then one could think of (17) as an integral approximation by two finite sums as follows
x x + σ ( x ) f ( x ) d x n = 0 N 1 ω n f ( ε n ) k = 0 M ξ k f ( x k )
As an example, we consider the function f ( x ) = x r e x / 2 with r > 0 and obtain the approximation of its integral using GQ associated with the continuous dual Hahn polynomial S n μ ( x 2 ; α , α ) with a mixed spectrum (i.e., μ < 0 ). Since the polynomial argument is not x but x 2 and x k 2 = ( k + μ ) 2 , then the GQ integral formula (18) must be revised to read
0 σ ( x ) f ( x 2 ) d x n = 0 N 1 ω n f ( ε n ) k = 0 M ξ k f ( x k 2 )
Table 3 demonstrates the validity this formula and illustrates its convergence for a given μ and several values of α. We compare GQ results to the numerical integration of 0 σ ( x ) f ( x 2 ) d x obtained by the built-in Mathcad integration scheme with an accuracy set by the precision variable (TOL) set at 10 14 and tested by showing the relative error in the calculation of 0 σ ( x ) d x + k = 0 M ξ k whose exact value is one. It is worth observing that the accuracy of the approximation diminishes if the quadrature degree N is increased beyond a certain critical maximum value that depends on α for a fixed μ. For comparison purposes, Table 4 gives the integral approximation of the same function using GQ associated with the continuous dual Hahn polynomial S n μ ( x 2 ; α , α ) but with pure continuous spectrum (i.e., μ μ > 0 and α μ α ). That is, we use the GQ formula (4). Evidently, the results in Table 4 are more accurate than those in Table 3 for this particular function. However, one should be aware that the comparison is imprecise because of the parameter change α μ α .
We plan to follow this work by another in which we attempt at approximating the following integral-sum combination that replaces (17)
x x + f ( x ) d x + k = 0 M f ( x k ) n = 0 N 1 ω ˜ n f ( ε n ) ,
where we determine the derivative weights ω ˜ n in terms of ω n , σ ( ε n ) and χ ( ε n ) .

Appendix: Relevant Orthogonal Polynomials

In this Appendix, we give the most essential properties of orthogonal polynomials that are relevant to our work. All these polynomials belong to the hypergeometric class in the Askey scheme [9]. We consider the orthonormal version of these polynomials. That is, where the corresponding three-term recursion relation is symmetric as given by (2) and the orthogonality is a pure δ n , m similar to those given by Eqs. (1), (10) and (16). Therefore, such polynomials are well-defined once we give the recursion coefficients a n , b n and the weight function ρ ( x ) , ξ k , or the pair σ ( x ) , ξ k corresponding to continuous, discrete, or mixed spectra, respectively. Moreover, we always take the initial polynomials as p 0 ( x ) = 1 and p 1 ( x ) =   ( x a 0 ) / b 0 .

A.1 Discrete Weight Function

In this section of the Appendix, we give the essential properties of three of the discrete polynomials. The first two form infinite sequences whereas the third is a finite sequence. However, all have x k = k .
The Charlier polynomial:
C n μ ( k ) = μ n n ! F 2 0 ¯ n , k 1 / μ
where μ > 0 and k , n = 0 , 1 , 2 , ... . The recursion coefficients are
a n = n + μ ,   b n = μ ( n + 1 ) .
The discrete weight function reads as follows
ξ k = μ k / e μ k ! .
The Meixner polynomial:
M n μ k ; β = ( 2 μ ) n n ! β n / 2 F 2 1 2 μ n , k 1 β 1 ,
where μ > 0 , 1 > β > 0 and k , n = 0 , 1 , 2 , ... . Moreover, ( a ) n = a ( a + 1 ) ( a + 2 ) ... ( a + n 1 ) =   Γ ( n + a ) Γ ( a ) is the Pochhammer symbol (the shifted factorial). The recursion coefficients are
a n = n ( 1 + β ) + 2 μ β 1 β ,   b n = β 1 β ( n + 1 ) ( n + 2 μ ) .
The discrete weight function reads as follows
ξ k = ( 1 β ) 2 μ ( 2 μ ) k β k k ! .
The Krawtchouk polynomial:
K n M k ; γ = M ! n ! ( M n ) ! γ 1 γ n / 2 F 2 1 M n , k γ 1 ,
where 1 > γ > 0 and k , n = 0 , 1 , 2 , .. , M . The recursion coefficients are
a n = M γ + n 1 2 γ ,   b n = ( n + 1 ) ( M n ) γ ( 1 γ ) .
The discrete weight function reads as follows
ξ k = ( 1 γ ) N k Γ ( M + 1 ) γ k Γ ( M k + 1 ) k ! .

A.2 Discrete and Continuous Weight Function Mix

In this section of the Appendix, we give the essential properties of two orthogonal polynomials that have either a pure continuous measure (if μ > 0 ) or a mix of continuous and discrete measures (if μ < 0 ). The discrete spectrum points for both are x k 2 = ( k + μ ) 2 , which is finite and of size equal to μ where z is the largest integer less than z.
The continuous dual Hahn polynomial:
S n μ ( x 2 ; α , β ) = ( μ + α ) n ( μ + β ) n n ! ( α + β ) n F 3 2 μ + α , μ + β n , μ + i x , μ i x 1 .
It is a polynomial in x 2 of degree n with x = 0 and x + = + . If μ > 0 then α and β must be positive or a pair of complex conjugates with positive real parts. However, if μ < 0 then α + μ and β + μ should be positive or a pair of complex conjugates with positive real parts. The recursion coefficients are
a n = ( n + μ + α ) ( n + μ + β ) + n ( n + α + β 1 ) μ 2 ,
b n = ( n + 1 ) ( n + α + β ) ( n + μ + α ) ( n + μ + β ) .
The continuous component of the weight function reads as follows
σ ( x ) = 1 2 π Γ ( μ + i x ) Γ ( α + i x ) Γ ( β + i x ) / Γ ( 2 i x ) 2 Γ ( μ + α ) Γ ( μ + β ) Γ ( α + β ) .
The discrete component of the weight function is
ξ k = 2 Γ ( α μ ) Γ ( β μ ) Γ ( α + β ) Γ ( 1 2 μ ) μ k 1 k k ! μ + α k μ + β k 2 μ k μ α + 1 k μ β + 1 k ,
where k = 0 , 1 , 2 , .. , μ .
The Wilson polynomial:
W n μ ( x 2 ; ν ; α , β ) = = 2 n + μ + ν + α + β 1 n + μ + ν + α + β 1 ( μ + α ) n ( μ + β ) n ( μ + ν ) n ( μ + ν + α + β ) n ( ν + α ) n ( ν + β ) n ( α + β ) n n ! F 4 3 μ + ν , μ + α , μ + β n , n + μ + ν + α + β 1 , μ + i x , μ i x 1
It is a polynomial in x 2 of degree n with x = 0 and x + = + . If μ > 0 then ν , α , β should be positive or complex conjugates with positive real parts. However, if μ < 0 then ν , α , β + μ must be positive or complex conjugates with positive real parts. The recursion coefficients are
a n = ( n + μ + ν ) ( n + μ + α ) ( n + μ + β ) ( n + μ + ν + α + β 1 ) ( 2 n + μ + ν + α + β ) ( 2 n + μ + ν + α + β 1 ) + n ( n + ν + α 1 ) ( n + ν + b 1 ) ( n + α + b 1 ) ( 2 n + μ + ν + α + β 1 ) ( 2 n + μ + ν + α + β 2 ) μ 2
b n = 1 2 n + μ + ν + α + β ( n + 1 ) ( n + μ + ν ) ( n + α + β ) ( n + μ + α ) ( n + μ + β ) ( n + ν + α ) ( n + ν + β ) ( n + μ + ν + α + β 1 ) ( 2 n + μ + ν + α + β 1 ) ( 2 n + μ + ν + α + β + 1 )
The continuous component of the weight function reads as follows
σ ( x ) = 1 2 π Γ ( μ + ν + α + β ) Γ ( μ + i x ) Γ ( ν + i x ) Γ ( α + i x ) Γ ( β + i x ) / Γ ( 2 i x ) 2 Γ ( μ + ν ) Γ ( α + β ) Γ ( μ + α ) Γ ( μ + β ) Γ ( ν + α ) Γ ( ν + β )
The discrete component of the weight function is
ξ k = 2 Γ ( μ + ν + α + β ) Γ ( ν μ ) Γ ( α μ ) Γ ( β μ ) Γ ( 2 μ + 1 ) Γ ( α + β ) Γ ( α + ν ) Γ ( β + ν ) μ k ( 2 μ ) k ( μ + ν ) k ( μ + α ) k ( μ + β ) k ( μ ν + 1 ) k ( μ α + 1 ) k ( μ β + 1 ) k k ! ,
where k = 0 , 1 , 2 , .. , μ .

References

  1. H. Stroud and D. Secrest, Gaussian Quadrature Formulas (Prentice-Hall, 1966).
  2. N. Kovvali, Theory and Applications of Gaussian Quadrature Methods (Springer, 2011). [CrossRef]
  3. H. Brass and K. Petras, Quadrature Theory: The Theory of Numerical Integration on a Compact Interval (AMS, 2011).
  4. H. Moniem, Gaussian Quadrature for sums: A rapidly convergent summation scheme, Math. Comput. 79 (2010) 857.
  5. S. Engblom, Gaussian Quadratures with Respect to Discrete Measures (Uppsala University, Department of information technology, Technical report 2006-007, 2006).
  6. G. Szegő, Orthogonal Polynomials (American Mathematical Society, 1939).
  7. T. S. Chihara, An Introduction to Orthogonal Polynomials (Dover, 2011).
  8. M. E. H. Ismail, Classical and Quantum orthogonal polynomials in one variable (Cambridge University press, 2009).
  9. R. Koekoek, P. A. Lesky and R. F. Swarttouw, Hypergeometric Orthogonal Polynomials and Their q-Analogues (Springer, 2010). [CrossRef]
  10. D. Zwillinger (ed.), Standard Mathematical Tables and Formulas, 31st edition (CRC press, 2003).
Table 1. The relative error in the evaluation of the infinite sum (13) for the function f ( x ) = r x / Γ ( x + 1 ) with r = 3.0 using Gauss quadrature associated with the Charlier and Meixner polynomials for several values of N. The polynomial parameter μ is fixed as μ = 2.0 for both polynomials. However, we took several values for the Meixner polynomial parameter β. The relative error is calculated as e r Σ e r + Σ , where Σ is the Gauss quadrature sum. For numerical computations, we used Mathcad® software version 14.0 with single precision.
Table 1. The relative error in the evaluation of the infinite sum (13) for the function f ( x ) = r x / Γ ( x + 1 ) with r = 3.0 using Gauss quadrature associated with the Charlier and Meixner polynomials for several values of N. The polynomial parameter μ is fixed as μ = 2.0 for both polynomials. However, we took several values for the Meixner polynomial parameter β. The relative error is calculated as e r Σ e r + Σ , where Σ is the Gauss quadrature sum. For numerical computations, we used Mathcad® software version 14.0 with single precision.
GQ N = 2 N = 4 N = 7 N = 10 N = 15
Charlier 5.694 × 10 3 6.525 × 10 6 4.165 × 10 11 2.653 × 10 16 8.844 × 10 17
Meixner
( β = 0.2 )
6.943 × 10 3 1.231 × 10 4 1.964 × 10 7 1.522 × 10 10 1.946 × 10 15
Meixner
( β = 0.4 )
3.900 × 10 2 2.272 × 10 3 3.192 × 10 5 8.121 × 10 7 1.1969 × 10 9
Meixner
( β = 0.6 )
9.541 × 10 2 5.266 × 10 3 1.131 × 10 3 2.588 × 10 5 8.008 × 10 6
Table 2. The relative error in the calculation of the finite sum (13) for the function f ( x ) = ( x + 1 ) r x + 1 / Γ ( x + r + 2 ) with r = 3.0 using Gauss quadrature associated with the Krawtchouk polynomial for M = 100 and for several values of N. We took several values for the polynomial parameter γ. The relative error is calculated as Exc Σ Exc + Σ , where Exc stands for the exact value obtained by formula (14) and Σ is the Gauss quadrature sum.
Table 2. The relative error in the calculation of the finite sum (13) for the function f ( x ) = ( x + 1 ) r x + 1 / Γ ( x + r + 2 ) with r = 3.0 using Gauss quadrature associated with the Krawtchouk polynomial for M = 100 and for several values of N. We took several values for the polynomial parameter γ. The relative error is calculated as Exc Σ Exc + Σ , where Exc stands for the exact value obtained by formula (14) and Σ is the Gauss quadrature sum.
γ N = 10 N = 20 N = 30 N = 40 N = 50
0.01 4.002 × 10 11 7.725 × 10 13 9.770 × 10 15 2.220 × 10 16 5.329 × 10 15
0.10 3.600 × 10 2 8.826 × 10 6 2.469 × 10 11 6.222 × 10 12 5.390 × 10 13
0.20 8.514 × 10 1 4.065 × 10 2 1.075 × 10 4 9.438 × 10 9 1.799 × 10 14
0.30 9.999 × 10 1 6.666 × 10 1 4.314 × 10 2 2.807 × 10 4 8.968 × 10 8
Table 3. The relative error in the calculation of the integral (19) for the function f ( x ) = x r e x / 2 with r = 3.0 . We use QG associated with the continuous dual Hahn polynomial S n μ ( x 2 ; α , α ) for μ = 3.5 and for several values of the parameter α. The relative error is calculated as Int Σ Int + Σ where Σ is the Gauss quadrature sum (minus the K sum) and Int is the Mathcad result for the numerical integration whose accuracy is shown in the second column as 1 Δ 1 + Δ where Δ = 0 σ ( x ) d x + k = 0 3 ξ k whose exact value is one.
Table 3. The relative error in the calculation of the integral (19) for the function f ( x ) = x r e x / 2 with r = 3.0 . We use QG associated with the continuous dual Hahn polynomial S n μ ( x 2 ; α , α ) for μ = 3.5 and for several values of the parameter α. The relative error is calculated as Int Σ Int + Σ where Σ is the Gauss quadrature sum (minus the K sum) and Int is the Mathcad result for the numerical integration whose accuracy is shown in the second column as 1 Δ 1 + Δ where Δ = 0 σ ( x ) d x + k = 0 3 ξ k whose exact value is one.
α + μ 1 Δ 1 + Δ N = 50 N = 100 N = 150 N = 200
1.0 0.000 6.218 × 10 4 3.524 × 10 6 6.920 × 10 6 3.727 × 10 5
2.0 2.220 × 10 16 7.682 × 10 3 2.634 × 10 6 1.146 × 10 6 3.361 × 10 6
3.0 1.332 × 10 14 5.954 × 10 2 3.267 × 10 5 5.579 × 10 8 1.173 × 10 6
4.0 1.649 × 10 12 2.702 × 10 1 3.098 × 10 4 2.159 × 10 6 1.153 × 10 7
5.0 9.704 × 10 11 6.219 × 10 1 2.166 × 10 3 1.878 × 10 5 4.597 × 10 7
Table 4. The relative error in the calculation of the integral (4) for the function f ( x ) = x r e x / 2 with r = 3.0 . We use QG associated with the continuous dual Hahn polynomial S n μ ( x 2 ; α , α ) for μ = + 3.5 and for several values of the parameter α. The relative error is calculated as Int Σ Int + Σ where Σ is the Gauss quadrature sum and Int is the Mathcad result for the numerical integration whose accuracy is shown in the second column as 1 Δ 1 + Δ where Δ = 0 σ ( x ) d x whose exact value is one.
Table 4. The relative error in the calculation of the integral (4) for the function f ( x ) = x r e x / 2 with r = 3.0 . We use QG associated with the continuous dual Hahn polynomial S n μ ( x 2 ; α , α ) for μ = + 3.5 and for several values of the parameter α. The relative error is calculated as Int Σ Int + Σ where Σ is the Gauss quadrature sum and Int is the Mathcad result for the numerical integration whose accuracy is shown in the second column as 1 Δ 1 + Δ where Δ = 0 σ ( x ) d x whose exact value is one.
α 1 Δ 1 + Δ N = 50 N = 100 N = 150 N = 200
1.0 1.721 × 10 15 2.023 × 10 6 1.311 × 10 9 6.808 × 10 12 6.817 × 10 13
2.0 6.495 × 10 15 2.465 × 10 5 4.263 × 10 8 3.666 × 10 10 1.138 × 10 11
3.0 1.939 × 10 12 1.256 × 10 4 6.439 × 10 7 8.849 × 10 9 2.534 × 10 10
4.0 1.987 × 10 10 2.338 × 10 4 5.232 × 10 6 1.174 × 10 7 4.689 × 10 9
5.0 9.304 × 10 9 2.860 × 10 4 2.477 × 10 5 9.514 × 10 7 5.156 × 10 8
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated