Evaluation of Some Non-Elementary Integrals Involving Sine, Cosine, Exponential and Logarithmic Integrals: Part I

Total Page:16

File Type:pdf, Size:1020Kb

Evaluation of Some Non-Elementary Integrals Involving Sine, Cosine, Exponential and Logarithmic Integrals: Part I View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Ural Mathematical Journal (UMJ) URAL MATHEMATICAL JOURNAL, 2018, Vol. 4, No. 1, pp. 24–42 DOI: 10.15826/umj.2018.1.003 EVALUATION OF SOME NON-ELEMENTARY INTEGRALS INVOLVING SINE, COSINE, EXPONENTIAL AND LOGARITHMIC INTEGRALS: PART I Victor Nijimbere School of Mathematics and Statistics, Carleton University, Ottawa, Ontario, Canada [email protected] β α Abstract: The non-elementary integrals Siβ,α = R [sin(λx )/(λx )]dx, β ≥ 1, α ≤ β +1 and Ciβ,α = R [cos (λxβ )/(λxα)]dx, β ≥ 1, α ≤ 2β + 1, where {β, α} ∈ R, are evaluated in terms of the hypergeometric functions 1F2 and 2F3, and their asymptotic expressions for |x|≫ 1 are also derived. The integrals of the form n β α n β α R [sin (λx )/(λx )]dx and R [cos (λx )/(λx )]dx, where n is a positive integer, are expressed in terms Siβ,α and Ciβ,α, and then evaluated. Siβ,α and Ciβ,α are also evaluated in terms of the hypergeometric function 2F2. And so, the hypergeometric functions, 1F2 and 2F3, are expressed in terms of 2F2. The exponential integral λxβ α x Eiβ,α = R (e /x )dx where β ≥ 1 and α ≤ β + 1 and the logarithmic integral Li = Rµ dt/ ln t, µ > 1, are also expressed in terms of 2F2, and their asymptotic expressions are investigated. For instance, it is found that for x ≫ 2, Li ∼ x/ln x + ln(ln x/ln 2) − 2 − ln 2 2F2(1, 1; 2, 2; ln 2), where the term ln (ln x/ln2) − 2 − ln 2 2F2(1, 1; 2, 2; ln 2) is added to the known expression in mathematical literature Li ∼ x/ln x. The method used in this paper consists of expanding the integrand as a Taylor and integrating the series term by term, and can be used to evaluate the other cases which are not considered here. This work is motivated by the applications of sine, cosine exponential and logarithmic integrals in Science and Engineering, and some applications are given. Key words: Non-elementary integrals, Sine integral, Cosine integral, Exponential integral, Logarithmic integral, Hyperbolic sine integral, Hyperbolic cosine integral, Hypergeometric functions, Asymptotic evaluation, Fundamental theorem of calculus. 1. Introduction Definition 1. An elementary function is a function of one variable constructed using that variable and constants, and by performing a finite number of repeated algebraic operations involving exponentials and logarithms. An indefinite integral which can be expressed in terms of elementary functions is an elementary integral. And if, on the other hand, it cannot be evaluated in terms of elementary functions, then it is non-elementary [6, 10]. Liouville 1938’s Theorem gives conditions to determine whether a given integral is elemen- tary or non-elementary [6, 10]. For instance, it was shown in [6, 10], using Liouville 1938’s The- orem, that the integral Si1,1 = (sin x/x)dx is non-elementary. With similar arguments as in [6, 10], One can show that Ci = (cos x/x)dx is also non-elementary. Using the Euler formulas 1,1 R e±ix = cos x i sin x, and noticing that if the integral of a function g(x) is elementary, then both ± R its real and imaginary parts are elementary [6], one can, for instance, prove that the integrals Si = [sin (λxβ)/(λxα)]dx, β 1, α 1, and Ci = [cos (λxβ)/(λxα)]dx, where β 1 and β,α ≥ ≥ β,α ≥ α 1, are non-elementary by using the fact that their real and imaginary parts are non-elementary. ≥ R R The integrals [sinn (λxβ)/(λxα)]dx and [cosn (λxβ)/(λxα)]dx, where n is a positive integer, are also non-elementary since they can be expressed in terms of Si and Ci . R R β,α β,α To my knowledge, no one has evaluated these integrals before. To this end, in this paper, for- mulas for these non-elementary integrals are expressed in terms of the hypergeometric functions 1F2 and F whose properties, for example, the asymptotic expansions for large argument ( λx 1), 2 3 | |≫ Some non-elementary integrals of sine, cosine and exponential integrals type 25 are known [9]. We do so by expanding the integrand in terms of its Taylor series and by integrat- ing the series term by term as in [7]. And therefore, their corresponding definite integrals can be evaluated using the Fundamental Theorem of Calculus (FTC). For example, the sine integral B sin (λxβ) Si = dx, β 1, α β + 1, β,α (λxα) ≥ ≤ AZ is evaluated for any A and B using the FTC. λxβ α On the other hand, the integrals Eiβ,α = (e /x )dx and dx/ ln x, are expressed in terms of the hypergeometric function F . This is quite important since one may re-investigate the 2 2 R R asymptotic behavior of the exponential (Ei) and logarithmic (Li) integrals [3] using the asymptotic expressions of the hypergeometric function 2F2 which are known [9]. Some other non-elementary integrals which can be written in terms of Eiβ,α or dx/ ln x are βx also evaluated. For instance, as a result of substitution, the integral eλe dx is written in terms β R of Ei = (eλx /x)dx and then evaluated in terms of F , and using integration by parts, the β,1 2 2 R integral ln(ln x)dx is written in terms of dx/ ln x and then evaluated in terms of F as well. R 2 2 Using the Euler identity e±ix = cos(x) i sin(x) or the hyperbolic identity e±x = cosh(x) R R± ± sinh(x), Siβ,α and Ciβ,α are evaluated in terms Eiβ,α. And hence, the hypergeometric functions 1F2 and 2F3 are expressed in terms of the hypergeometric 2F2. This type of integrals find applications in many fields in Science and Engineering. For instance, in wireless telecommunications, the random attenuation capacity of a channel, known as fading capacity, is calculated as [11] ∞ 1 1 C = E[log (1 + P H 2)] = log (1 + Pξ)e−ξdξ = e1/P E ( ) E , fading 2 | | 2 ln 2 1,1 ∞ − 1,1 P Z0 where the fading coefficient H is a complex Gaussian random variable, and E X 2 P is the | | ≤ maximum average transmitted power of a complex-valued channel input X. In number theory, the prime number theorem states that [3] x dx π(x) Li(x)= , µ> 1, ∼ ln x Zµ where π(x) denotes the number of primes small than or equal to x. Moreover, there are applications of sine and cosine integrals in electromagnetic theory, see for example Lebedev [5]. Therefore, it is quite important to adequately evaluate these integrals. For that reason, the main goal of this paper is to evaluate non-elementary integrals of sine, cosine, exponential and logarithmic integrals type in terms of elementary and special functions with well known properties so that the fundamental theorem of calculus can be used so that we can avoid to use numerical integration. β α Part I is indeed devoted to the cases Siβ,α = [sin (λx )/(λx )]dx, β 1, α β + 1, β α λxβ α≥ ≤ Ciβ,α = [cos (λx )/(λx )]dx, β 1, α 2β +1 and Eiβ,α = (e /x )dx where β 1, ≥ ≤ R β α ≥ α β + 1, where β, α R. The other cases Siβ,α = [sin (λx )/(λx )]dx, β 1, α>β + 1, ≤ R { } ∈ R β ≥ Ci = [cos (λxβ)/(λxα)]dx, β 1, α> 2β +1 and Ei = (eλx /xα)dx where β 1, β,α ≥ R β,α ≥ α > β + 1, where β, α R, which may involve series whose properties are not necessary known R { } ∈ R will be considered in Part 2 [8]. Before we proceed to the objectives of this paper (see sections 2, 3, 4 and 5), we first define the generalized hypogeometric function as it is an important mathematical that we are going to use throughout the paper. 26 Victor Nijimbere Definition 2. The generalized hypergeometric function, denoted as pFq, is a special function given by the series [1, 9] ∞ (a ) (a ) (a ) xn F (a , a , , a ; b , b , , b ; x)= 1 n 2 n · · · p n , p q 1 2 · · · p 1 2 · · · q (b ) (b ) (b ) n! n=0 1 n 2 n q n X · · · where a , a , , a and ; b , b , , b are arbitrary constants, (ϑ) = Γ(ϑ + n)/Γ(ϑ) (Pochham- 1 2 · · · p 1 2 · · · q n mer’s notation [1]) for any complex ϑ, with (ϑ)0 = 1, and Γ is the standard gamma function [1, 9]. 2. Evaluation of the sine integral and related integrals 1 3 3 λ2x2 Proposition 1. The function G(x)= x F ; , ; , where F is a hypergeometric 1 2 2 2 2 − 4 1 2 sin (λx) function [1] and λ is an arbitrarily constant, is the antiderivative of the function g(x)= . λx Thus, sin (λx) 1 3 3 λ2x2 dx = x F ; , ; + C. λx 1 2 2 2 2 − 4 Z P r o o f. To prove Proposition 1, we expand g(x) as Taylor series and integrate the series term by term. We also use the gamma duplication formula [1] 1 1 1 Γ(2α) = (2π)− 2 22α− 2 Γ(α)Γ α + , α C, 2 ∈ the Pochhammer’s notation for the gamma function [1], Γ(α + n) (α) = α(α + 1) (α + n 1) = , α C, n · · · − Γ(α) ∈ and the property of the gamma function Γ(α+1) = αΓ(α) (eg., Γ (n + 3/2) = (n + 1/2) Γ (n + 1/2) for any real n).
Recommended publications
  • Integration in Terms of Exponential Integrals and Incomplete Gamma Functions
    Integration in terms of exponential integrals and incomplete gamma functions Waldemar Hebisch Wrocªaw University [email protected] 13 July 2016 Introduction What is FriCAS? I FriCAS is an advanced computer algebra system I forked from Axiom in 2007 I about 30% of mathematical code is new compared to Axiom I about 200000 lines of mathematical code I math code written in Spad (high level strongly typed language very similar to FriCAS interactive language) I runtime system currently based on Lisp Some functionality added to FriCAS after fork: I several improvements to integrator I limits via Gruntz algorithm I knows about most classical special functions I guessing package I package for computations in quantum probability I noncommutative Groebner bases I asymptotically fast arbitrary precision computation of elliptic functions and elliptic integrals I new user interfaces (Emacs mode and Texmacs interface) FriCAS inherited from Axiom good (probably the best at that time) implementation of Risch algorithm (Bronstein, . ) I strong for elementary integration I when integral needed special functions used pattern matching Part of motivation for current work came from Rubi testsuite: Rubi showed that there is a lot of functions which are integrable in terms of relatively few special functions. I Adapting Rubi looked dicult I Previous work on adding special functions to Risch integrator was widely considered impractical My conclusion: Need new algorithmic approach. Ex post I claim that for considered here class of functions extension to Risch algorithm is much more powerful than pattern matching. Informally Ei(u)0 = u0 exp(u)=u Γ(a; u)0 = u0um=k exp(−u) for a = (m + k)=k and −k < m < 0.
    [Show full text]
  • Hydrology 510 Quantitative Methods in Hydrology
    New Mexico Tech Hyd 510 Hydrology Program Quantitative Methods in Hydrology Hydrology 510 Quantitative Methods in Hydrology Motive Preview: Example of a function and its limits Consider the solute concentration, C [ML-3], in a confined aquifer downstream of a continuous source of solute with fixed concentration, C0, starting at time t=0. Assume that the solute advects in the aquifer while diffusing into the bounding aquitards, above and below (but which themselves have no significant flow). (A homology to this problem would be solute movement in a fracture aquitard (diffusion controlled) Flow aquifer Solute (advection controlled) aquitard (diffusion controlled) x with diffusion into the porous-matrix walls bounding the fracture: the so-called “matrix diffusion” problem. The difference with the original problem is one of spatial scale.) An approximate solution for this conceptual model, describing the space-time variation of concentration in the aquifer, is the function: 1/ 2 x x D C x D C(x,t) = C0 erfc or = erfc B vt − x vB C B v(vt − x) 0 where t is time [T] since the solute was first emitted x is the longitudinal distance [L] downstream, v is the longitudinal groundwater (seepage) velocity [L/T] in the aquifer, D is the effective molecular diffusion coefficient in the aquitard [L2/T], B is the aquifer thickness [L] and erfc is the complementary error function. Describe the behavior of this function. Pick some typical numbers for D/B2 (e.g., D ~ 10-9 m2 s-1, typical for many solutes, and B = 2m) and v (e.g., 0.1 m d-1), and graph the function vs.
    [Show full text]
  • Multiple-Precision Exponential Integral and Related Functions
    Multiple-Precision Exponential Integral and Related Functions David M. Smith Loyola Marymount University This article describes a collection of Fortran-95 routines for evaluating the exponential integral function, error function, sine and cosine integrals, Fresnel integrals, Bessel functions and related mathematical special functions using the FM multiple-precision arithmetic package. Categories and Subject Descriptors: G.1.0 [Numerical Analysis]: General { computer arith- metic, multiple precision arithmetic; G.1.2 [Numerical Analysis]: Approximation { special function approximation; G.4 [Mathematical Software]: { Algorithm design and analysis, efficiency, portability General Terms: Algorithms, exponential integral function, multiple precision Additional Key Words and Phrases: Accuracy, function evaluation, floating point, Fortran, math- ematical library, portable software 1. INTRODUCTION The functions described here are high-precision versions of those in the chapters on the ex- ponential integral function, error function, sine and cosine integrals, Fresnel integrals, and Bessel functions in a reference such as Abramowitz and Stegun [1965]. They are Fortran subroutines that use the FM package [Smith 1991; 1998; 2001] for multiple-precision arithmetic, constants, and elementary functions. The FM package supports high precision real, complex, and integer arithmetic and func- tions. All the standard elementary functions are included, as well as about 25 of the mathematical special functions. An interface module provides easy use of the package through three multiple- precision derived types, and also extends Fortran's array operations involving vectors and matrices to multiple-precision. The routines in this module can detect an attempt to use a multiple precision variable that has not been defined, which helps in debugging. There is great flexibility in choosing the numerical environment of the package.
    [Show full text]
  • NM Temme 1. Introduction the Incomplete Gamma Functions Are Defined by the Integrals 7(A,*)
    Methods and Applications of Analysis © 1996 International Press 3 (3) 1996, pp. 335-344 ISSN 1073-2772 UNIFORM ASYMPTOTICS FOR THE INCOMPLETE GAMMA FUNCTIONS STARTING FROM NEGATIVE VALUES OF THE PARAMETERS N. M. Temme ABSTRACT. We consider the asymptotic behavior of the incomplete gamma func- tions 7(—a, —z) and r(—a, —z) as a —► oo. Uniform expansions are needed to describe the transition area z ~ a, in which case error functions are used as main approximants. We use integral representations of the incomplete gamma functions and derive a uniform expansion by applying techniques used for the existing uniform expansions for 7(0, z) and V(a,z). The result is compared with Olver's uniform expansion for the generalized exponential integral. A numerical verification of the expansion is given. 1. Introduction The incomplete gamma functions are defined by the integrals 7(a,*)= / T-Vcft, r(a,s)= / t^e^dt, (1.1) where a and z are complex parameters and ta takes its principal value. For 7(0,, z), we need the condition ^Ra > 0; for r(a, z), we assume that |arg2:| < TT. Analytic continuation can be based on these integrals or on series representations of 7(0,2). We have 7(0, z) + r(a, z) = T(a). Another important function is defined by 7>>*) = S7(a,s) = =^ fu^e—du. (1.2) This function is a single-valued entire function of both a and z and is real for pos- itive and negative values of a and z. For r(a,z), we have the additional integral representation e-z poo -zt j.-a r(a, z) = — r / dt, ^a < 1, ^z > 0, (1.3) L [i — a) JQ t ■+■ 1 which can be verified by differentiating the right-hand side with respect to z.
    [Show full text]
  • Exponential Asymptotics with Coalescing Singularities
    Exponential asymptotics with coalescing singularities Philippe H. Trinh and S. Jonathan Chapman Oxford Centre for Industrial and Applied Mathematics, Mathematical Institute, University of Oxford E-mail: [email protected], [email protected] Abstract. Problems in exponential asymptotics are typically characterized by divergence of the associated asymptotic expansion in the form of a factorial divided by a power. In this paper, we demonstrate that in certain classes of problems that involve coalescing singularities, a more general type of exponential-over-power divergence must be used. As a model example, we study the water waves produced by flow past an obstruction such as a surface-piercing ship. In the low speed or low Froude limit, the resultant water waves are exponentially small, and their formation is attributed to the singularities in the geometry of the obstruction. However, in cases where the singularities are closely spaced, the usual asymptotic theory fails. We present both a general asymptotic framework for handling such problems of coalescing singularities, and provide numerical and asymptotic results for particular examples. 1. Introduction Many problems in exponential asymptotics involve the analysis of singularly perturbed differential equations where the associated solution is expressed as a divergent asymptotic expansion. It has been noted by authors such as Dingle [14] and Berry [3] that in many cases, the divergence of the sequence occurs in the form of a factorial divided by a arXiv:1403.7182v2 [math.CA] 4 Oct 2014 power. In this paper, we use a model problem from the theory of water waves and ship hydrodynamics to demonstrate how in certain classes of problems, a more general form of divergence must be used in order to perform the exponential asymptotic analysis.
    [Show full text]
  • Expected Logarithm and Negative Integer Moments of a Noncentral 2-Distributed Random Variable
    entropy Article Expected Logarithm and Negative Integer Moments of a Noncentral c2-Distributed Random Variable † Stefan M. Moser 1,2 1 Signal and Information Processing Lab, ETH Zürich, 8092 Zürich, Switzerland; [email protected]; Tel.: +41-44-632-3624 2 Institute of Communications Engineering, National Chiao Tung University, Hsinchu 30010, Taiwan † Part of this work has been presented at TENCON 2007 in Taipei, Taiwan, and at ISITA 2008 in Auckland, New Zealand. Received: 21 July 2020; Accepted: 15 September 2020; Published: 19 September 2020 Abstract: Closed-form expressions for the expected logarithm and for arbitrary negative integer moments of a noncentral c2-distributed random variable are presented in the cases of both even and odd degrees of freedom. Moreover, some basic properties of these expectations are derived and tight upper and lower bounds on them are proposed. Keywords: central c2 distribution; chi-square distribution; expected logarithm; exponential distribution; negative integer moments; noncentral c2 distribution; squared Rayleigh distribution; squared Rice distribution 1. Introduction The noncentral c2 distribution is a family of probability distributions of wide interest. They appear in situations where one or several independent Gaussian random variables (RVs) of equal variance (but potentially different means) are squared and summed together. The noncentral c2 distribution contains as special cases among others the central c2 distribution, the exponential distribution (which is equivalent to a squared Rayleigh distribution), and the squared Rice distribution. In this paper, we present closed-form expressions for the expected logarithm and for arbitrary negative integer moments of a noncentral c2-distributed RV with even or odd degrees of freedom.
    [Show full text]
  • POCKETBOOKOF MATHEMATICAL FUNCTIONS Abridged Edition of Handbook of Mathematical Functions Milton Abramowitz and Irene A
    POCKETBOOKOF MATHEMATICAL FUNCTIONS Abridged edition of Handbook of Mathematical Functions Milton Abramowitz and Irene A. Stegun (eds.) Material selected by Michael Danos and Johann Rafelski 1984 Verlag Harri Deutsch - Thun - Frankfurt/Main CONTENTS Forewordtothe Original NBS Handbook 5 Pref ace 6 2. PHYSICAL CONSTANTS AND CONVERSION FACTORS 17 A.G. McNish, revised by the editors Table 2.1. Common Units and Conversion Factors 17 Table 2.2. Names and Conversion Factors for Electric and Magnetic Units 17 Table 2.3. AdjustedValuesof Constants 18 Table 2.4. Miscellaneous Conversion Factors 19 Table 2.5. FactorsforConvertingCustomaryU.S. UnitstoSIUnits 19 Table 2.6. Geodetic Constants 19 Table 2.7. Physical andNumericalConstants 20 Table 2.8. Periodic Table of the Elements 21 Table 2.9. Electromagnetic Relations 22 Table 2.10. Radioactivity and Radiation Protection 22 3. ELEMENTARY ANALYTICAL METHODS 23 Milton Abramowitz 3.1. Binomial Theorem and Binomial Coefficients; Arithmetic and Geometrie Progressions; Arithmetic, Geometrie, Harmonie and Generalized Means 23 3.2. Inequalities 23 3.3. Rules for Differentiation and Integration 24 3.4. Limits, Maxima and Minima 26 3.5. Absolute and Relative Errors 27 3.6. Infinite Series 27 3.7. Complex Numbers and Functions 29 3.8. Algebraic Equations 30 3.9. Successive Approximation Methods 31 3.10. TheoremsonContinuedFractions 32 4. ELEMENTARY TRANSCENDENTAL FUNCTIONS 33 Logarithmic, Exponential, Circular and Hyperbolic Functions Ruth Zucker 4.1. Logarithmic Function 33 4.2. Exponential Function 35 4.3. Circular Functions 37 4.4. Inverse Circular Functions 45 4.5. Hyperbolic Functions 49 4.6. InverseHyberbolicFunctions 52 5. EXPONENTIAL INTEGRAL AND RELATED FUNCTIONS .... 56 Walter Gautschi and William F.
    [Show full text]
  • A Table of Integrals of the Error Functions*
    JOURNAL OF RESEAR CH of the Natiana l Bureau of Standards - B. Mathematical Sciences Vol. 73B, No. 1, January-March 1969 A Table of Integrals of the Error Functions* Edward W. Ng** and Murray Geller** (October 23, 1968) This is a compendium of indefinite and definite integrals of products of the Error function with elementary or transcendental functions. A s'ubstantial portion of the results are ne w. Key Words: Astrophysics; atomic physics; Error functions; indefi nite integrals; special functions; statistical analysis. 1. Introduction Integrals of the error function occur in a great variety of applicati ons, us ualJy in problems involvin g multiple integration where the integrand contains expone ntials of the squares of the argu­ me nts. Examples of applications can be cited from atomic physics [16),1 astrophysics [13] , and statistical analysis [15]. This paper is an attempt to give a n up-to-date exhaustive tabulation of s uch integrals. All formulas for indefi nite integrals in sections 4.1, 4.2, 4.5, a nd 4.6 below were derived from integration by parts and c hecked by differe ntiation of the resulting expressions_ Section 4.3 and the second hali' of 4.5 cover all formulas give n in [7] , with omission of trivial duplications and with a number of additions; section 4.4 covers essentially formulas give n in [4], Vol. I, pp. 233-235. All these formulas have been re-derived and checked, eithe r from the integral representation or from the hype rgeometric series of the error function. Sections 4.7,4_8 and 4_9 ori ginated in a more varied way.
    [Show full text]
  • Error Analysis in the Series Evaluation of the Exponential Type Integral Ezel(Z)
    An International Joumal computers & mathematics with applications PERGAMON Computers and Mathematics with Applications 43 (2002) 207-266 www.elsevier.com/locate/camwa Error Analysis in the Series Evaluation of the Exponential Type Integral eZEl(z) W. C. HASSENPFLUG Department of Mechanical Engineering University of Stellenbosch, Stellenbosch, South Africa (Received July 1999; accepted August 1999) Abstract--The method of convolution algebra is used to compute values of the exponential type integral eZ E1 (z), y(z) = f0 ~ se-S + z ds, by expansion of the integrand in a string of Taylor series' along the real s-axis for any complex parameter z, accurate within 4-1 of the last digit of seven-digit computation. Accuracy is verified by comparison with existing tables of E1 and related integrals. This method is used to assess the accuracy of the error estimates of all subsequent computations. Three errors of a Taylor series are identified. These consist of a Taylor series truncation error, a digital truncation error, and a stability error. Methods are developed to estimate the error. By iteration a numerical radius of convergence for a given accuracy is determined. The z-plane is divided into three regions in which three different types of series are used to expand the function f(z) directly in z. Around the center the well-known Frobenius series is used. In the outer region the well-known asymptotic approximation is used. Their accuracy boundaries are determined. In the near-annular region in between, a set of Taylor series is introduced. As the result, the function f(z) can be computed fast with the appropriate series for any complex argument z, to an accuracy within less than relative error of 5 x 10 -7.
    [Show full text]
  • Expint: Exponential Integral and Incomplete Gamma Function
    expint: Exponential integral and incomplete gamma function Vincent Goulet Université Laval 1 Introduction The exponential integral Z ¥ e−t E1(x) = dt, x 2 R x t and the incomplete gamma function Z ¥ G(a, x) = ta−1e−t dt, x > 0, a 2 R x are two closely related functions that arise in various fields of mathematics. expint is a small package that intends to fill a gap in R’s support for mathematical functions by providing facilities to compute the exponential integral and the incomplete gamma function. Furthermore, and perhaps most conveniently for R package developers, the package also gives easy access to the underlying C workhorses through an API. The C routines are derived from the GNU Scientific Library (GSL; Galassi et al., 2009). Package expint started its life in version 2.0-0 of package actuar (Dutang et al., 2008) where we extended the range of admissible values in the com- putation of limited expected value functions. This required an incomplete gamma function that accepts negative values of argument a, as explained at the beginning of Appendix A of Klugman et al.(2012). 2 Exponential integral Abramowitz and Stegun(1972, Section 5.1) first define the exponential integral as Z ¥ e−t E1(x) = dt. (1) x t 1 An alternative definition (to be understood in terms of the Cauchy principal value due to the singularity of the integrand at zero) is Z ¥ e−t Z x et Ei(x) = − dt = dt, x > 0. −x t −¥ t The above two definitions are related as follows: E1(−x) = − Ei(x), x > 0.
    [Show full text]
  • Chapter S – Approximations of Special Functions
    s – Approximations of Special Functions Introduction – s Chapter s – Approximations of Special Functions 1. Scope of the Chapter This chapter provides functions for computing some of the most commonly required special functions of mathematics. See Chapter g01 for probability distribution functions and their inverses. 2. Accuracy The majority of the functions in this chapter evaluate real-valued functions of a single real variable x. The accuracy of the computed value is discussed in each function document, along the following lines. Let ∆ be the absolute error in the argument x,andδ be the relative error in x. If we ignore errors that arise in the argument by propagation of data errors etc. and consider only those errors that result from the fact that a real number is being represented in the computer in floating-point form with finite precision, then δ is bounded and this bound is independent of the magnitude of x; for example, on an n-digit machine |δ|≤10−n. (This of course implies that the absolute error ∆ = xδ is also bounded but the bound is now dependent on x.) Let E be the absolute error in the computed function value f(x), and be the relative error. Then E |f (x)|∆ E |xf (x)|δ |xf (x)/f(x)|δ. If possible, the function documents discuss the last of these relations, that is the propagation of relative error, in terms of the error amplification factor |xf (x)/f(x)|. But in some cases, such as near zeros of the function which cannot be extracted explicitly, absolute error in the result is the quantity of significance and here the factor |xf (x)| is described.
    [Show full text]
  • 1 Polyexponentials Khristo N. Boyadzhiev Ohio Northern University Departnment of Mathematics Ada, OH 45810 [email protected]
    Polyexponentials Khristo N. Boyadzhiev Ohio Northern University Departnment of Mathematics Ada, OH 45810 [email protected] 1. Introduction. The polylogarithmic function [15] (1.1) and the more general Lerch Transcendent (or Lerch zeta function) [4], [14] (1.2) have established themselves as very useful special functions in mathematics. Here and further we assume that . In this article we shall discuss the function (1.3) and survey some of its properties. Our intention is to show that this function can also be useful in a number of situations. It extends the natural exponential function and also the exponential integral (see Section 2). As we shall see, the function is relevant also to the theory of the Lerch Transcendent (1.2 ) and the Hurwitz zeta function , (1.4) About a century ago, in 1905, Hardy [6] published a paper on the function 1 , (1.5) where he focused on the variable and studied the zeroes of and its asymptotic behavior. We shall use a different notation here in order to emphasize the relation of to the natural exponential function. Hardy wrote about : “All the functions which have been considered so far are in many ways analogous to the ordinary exponential function” [6, p. 428]. For this reason we call polyexponential (or polyexponentials, if is considered a parameter). Our aim is to study some of its properties (complimentary to those in [6]} and point out some applications. In Section 2 we collect some basic properties of the polyexponential function. Next, in Section 3, we discuss exponential polynomials and the asymptotic expansion of in the variable .
    [Show full text]