Microsoft Excel Exponential Integral Function Approximation Rating: 7,6/10 7452 reviews
- Exponential Integral Table
- Error Function
Microsoft Excel Exponential Integral Function Approximation. Posted: adminOn. Download Update. Download the. Double click. May 18, 2005 Microsoft Office Application Help - Excel Help. Is it possible to calculate integrals with Excel. Some functions containing integrals using > Excel. Woodwork City pizza of Sarasota Exponential Integral Function Excel. Exponential integral function approximation. Exponential Regression using Microsoft Excel.
In inputbox input x and n
exponential function : e^x=1+ x/1! + x^2/2! +...x^n/n! ; n!=1*2*3..*n
inside the function we can use t(n)=x^n/n! and for recurrence formula t(n)=t(n-1)*x/n
The partial sum to the n-th clause is expressed with s(n) which is ; s(n)=s(n-1)+t(n)
then e=1+s(n)
the calculation will repeat until i=n and t(n) <0.001
the problem is when i run the program the answer is no same with the exponential function above.
Sub e2()
Dim n As Double
Dim x As Double
Dim i As Double
Dim tn As Double
Dim sn As Double
Dim t1 As Double
Dim e As Double
x = CInt(InputBox('x?'))
n = CInt(InputBox('n?'))
Do
For i = 1 To n
t1 = x / (n - 1)
tn = (x / (n - 1)) * (x / n)
sn = tn + t1
e = 1 + sn
If x = 0 Then Exit For
Next i
Loop Until tn < 0.001 Or -tn < 0.001
MsgBox 'e^' & CStr(x) & '=' & CStr(e)
End Sub
Jump to navigationJump to search
Not to be confused with other integrals of exponential functions.
Plot of function (top) and function (bottom).
In mathematics, the exponential integral Ei is a special function on the complex plane.It is defined as one particular definite integral of the ratio between an exponential function and its argument.
Definitions[edit]
For real non zero values of x, the exponential integral Ei(x) is defined as
The Risch algorithm shows that Ei is not an elementary function. The definition above can be used for positive values of x, but the integral has to be understood in terms of the Cauchy principal value due to the singularity of the integrand at zero.
For complex values of the argument, the definition becomes ambiguous due to branch points at 0 and .[1] Instead of Ei, the following notation is used,[2]
(note that for positive values of x, we have ). Fated to love you kdrama.
In general, a branch cut is taken on the negative real axis and E1 can be defined by analytic continuation elsewhere on the complex plane.
For positive values of the real part of , this can be written[3]
The behaviour of E1 near the branch cut can be seen by the following relation:[4]
Properties[edit]
Several properties of the exponential integral below, in certain cases, allow one to avoid its explicit evaluation through the definition above.
Convergent series[edit]
For real or complex arguments off the negative real axis, can be expressed as[5]
where is the Euler–Mascheroni constant. The sum converges for all complex , and we take the usual value of the complex logarithm having a branch cut along the negative real axis.
This formula can be used to compute with floating point operations for real between 0 and 2.5. For , the result is inaccurate due to cancellation.
A faster converging series was found by Ramanujan:
These alternating series can also be used to give good asymptotic bounds, e.g.:
for .
Asymptotic (divergent) series[edit]
Relative error of the asymptotic approximation for different number of terms in the truncated sum
Unfortunately, the convergence of the series above is slow for arguments of larger modulus. For example, for x = 10 more than 40 terms are required to get an answer correct to three significant figures for .[6] However, there is a divergent series approximation that can be obtained by integrating by parts:[7]
which has error of order and is valid for large values of . The relative error of the approximation above is plotted on the figure to the right for various values of , the number of terms in the truncated sum ( in red, in pink).
Exponential and logarithmic behavior: bracketing[edit]
Bracketing of by elementary functions
From the two series suggested in previous subsections, it follows that behaves like a negative exponential for large values of the argument and like a logarithm for small values. For positive real values of the argument, can be bracketed by elementary functions as follows:[8]
Exponential Integral Table
The left-hand side of this inequality is shown in the graph to the left in blue; the central part is shown in black and the right-hand side is shown in red.
Definition by Ein[edit]
Both and can be written more simply using the entire function[9] defined as
(note that this is just the alternating series in the above definition of ). Then we have
Relation with other functions[edit]
Mortal kombat annihilation full movie mp4 download in dual audio. Kummer's equation
is usually solved by the confluent hypergeometric functions and But when and that is,
we have
for all z. A second solution is then given by E1(−z). In fact,
with the derivative evaluated at Another connexion with the confluent hypergeometric functions is that E1 is an exponential times the function U(1,1,z):
The exponential integral is closely related to the logarithmic integral function li(x) by the formula
for non-zero real values of .
The exponential integral may also be generalized to
which can be written as a special case of the incomplete gamma function:[10]Hrt 2 tv program live in tenn.
The generalized form is sometimes called the Misra function[11], defined as
Including a logarithm defines the generalized integro-exponential function[12]
The indefinite integral:
is similar in form to the ordinary generating function for , the number of divisors of :
Derivatives[edit]
The derivatives of the generalised functions can be calculated by means of the formula [13]
Note that the function is easy to evaluate (making this recursion useful), since it is just .[14]
Exponential integral of imaginary argument[edit]
against ; real part black, imaginary part red.
If is imaginary, it has a nonnegative real part, so we can use the formula
to get a relation with the trigonometric integrals and :
The real and imaginary parts of are plotted in the figure to the right with black and red curves.
Approximations[edit]
There have been a number of approximations for the exponential integral function. These include:
- The Swamee and Ohija approximation[15]
- where
- The Allen and Hastings approximation [15][16]
- where
- The continued fraction expansion [16]
- The approximation of Barry et al.[17]
- where:
- with being the Euler–Mascheroni constant.
Applications[edit]
- Time-dependent heat transfer
- Nonequilibrium groundwater flow in the Theis solution (called a well function)
- Radiative transfer in stellar and planetary atmospheres
- Radial diffusivity equation for transient or unsteady state flow with line sources and sinks
- Solutions to the neutron transport equation in simplified 1-D geometries.[18]
Error Function
See also[edit]
Notes[edit]
- ^Abramowitz and Stegun, p. 228
- ^Abramowitz and Stegun, p. 228, 5.1.1
- ^Abramowitz and Stegun, p. 228, 5.1.4 with n = 1
- ^Abramowitz and Stegun, p. 228, 5.1.7
- ^Abramowitz and Stegun, p. 229, 5.1.11
- ^Bleistein and Handelsman, p. 2
- ^Bleistein and Handelsman, p. 3
- ^Abramowitz and Stegun, p. 229, 5.1.20
- ^Abramowitz and Stegun, p. 228, see footnote 3.
- ^Abramowitz and Stegun, p. 230, 5.1.45
- ^After Misra (1940), p. 178
- ^Milgram (1985)
- ^Abramowitz and Stegun, p. 230, 5.1.26
- ^Abramowitz and Stegun, p. 229, 5.1.24
- ^ abGiao, Pham Huy (2003-05-01). 'Revisit of Well Function Approximation and An Easy Graphical Curve Matching Technique for Theis' Solution'. Ground Water. 41 (3): 387–390. doi:10.1111/j.1745-6584.2003.tb02608.x. ISSN1745-6584.
- ^ abTseng, Peng-Hsiang; Lee, Tien-Chang (1998-02-26). 'Numerical evaluation of exponential integral: Theis well function approximation'. Journal of Hydrology. 205 (1–2): 38–51. Bibcode:1998JHyd.205..38T. doi:10.1016/S0022-1694(97)00134-0.
- ^Barry, D. A; Parlange, J. -Y; Li, L (2000-01-31). 'Approximation for the exponential integral (Theis well function)'. Journal of Hydrology. 227 (1–4): 287–291. Bibcode:2000JHyd.227.287B. doi:10.1016/S0022-1694(99)00184-5.
- ^George I. Bell; Samuel Glasstone (1970). Nuclear Reactor Theory. Van Nostrand Reinhold Company.
References[edit]
- Abramowitz, Milton; Irene Stegun (1964). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. Abramowitz and Stegun. New York: Dover. ISBN978-0-486-61272-0., Chapter 5.
- Bender, Carl M.; Steven A. Orszag (1978). Advanced mathematical methods for scientists and engineers. McGraw–Hill. ISBN978-0-07-004452-4.
- Bleistein, Norman; Richard A. Handelsman (1986). Asymptotic Expansions of Integrals. Dover. ISBN978-0-486-65082-1.
- Busbridge, Ida W. (1950). 'On the integro-exponential function and the evaluation of some integrals involving it'. Quart. J. Math. (Oxford). 1 (1): 176–184. Bibcode:1950QJMat..1.176B. doi:10.1093/qmath/1.1.176.
- Stankiewicz, A. (1968). 'Tables of the integro-exponential functions'. Acta Astronomica. 18: 289. Bibcode:1968AcA..18.289S.
- Sharma, R. R.; Zohuri, Bahman (1977). 'A general method for an accurate evaluation of exponential integrals E1(x), x>0'. J. Comput. Phys. 25 (2): 199–204. Bibcode:1977JCoPh.25.199S. doi:10.1016/0021-9991(77)90022-5.
- Kölbig, K. S. (1983). 'On the integral exp(−μt)tν−1logmtdt'. Math. Comput. 41 (163): 171–182. doi:10.1090/S0025-5718-1983-0701632-1.
- Milgram, M. S. (1985). 'The generalized integro-exponential function'. Mathematics of Computation. 44 (170): 443–458. doi:10.1090/S0025-5718-1985-0777276-4. JSTOR2007964. MR0777276.
- Misra, Rama Dhar; Born, M. (1940). 'On the Stability of Crystal Lattices. II'. Mathematical Proceedings of the Cambridge Philosophical Society. 36 (2): 173. Bibcode:1940PCPS..36.173M. doi:10.1017/S030500410001714X.
- Chiccoli, C.; Lorenzutta, S.; Maino, G. (1988). 'On the evaluation of generalized exponential integrals Eν(x)'. J. Comput. Phys. 78 (2): 278–287. Bibcode:1988JCoPh.78.278C. doi:10.1016/0021-9991(88)90050-2.
- Chiccoli, C.; Lorenzutta, S.; Maino, G. (1990). 'Recent results for generalized exponential integrals'. Computer Math. Applic. 19 (5): 21–29. doi:10.1016/0898-1221(90)90098-5.
- MacLeod, Allan J. (2002). 'The efficient computation of some generalised exponential integrals'. J. Comput. Appl. Math. 148 (2): 363–374. Bibcode:2002JCoAm.138.363M. doi:10.1016/S0377-0427(02)00556-3.
- Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007), 'Section 6.3. Exponential Integrals', Numerical Recipes: The Art of Scientific Computing (3rd ed.), New York: Cambridge University Press, ISBN978-0-521-88068-8
- Temme, N. M. (2010), 'Exponential, Logarithmic, Sine, and Cosine Integrals', in Olver, Frank W. J.; Lozier, Daniel M.; Boisvert, Ronald F.; Clark, Charles W. (eds.), NIST Handbook of Mathematical Functions, Cambridge University Press, ISBN978-0521192255, MR2723248
External links[edit]
- Hazewinkel, Michiel, ed. (2001) [1994], 'Integral exponential function', Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN978-1-55608-010-4
- Weisstein, Eric W.'Exponential Integral'. MathWorld.
- Weisstein, Eric W.'En-Function'. MathWorld.
- 'Exponential integral Ei'. Wolfram Functions Site.
- Exponential, Logarithmic, Sine, and Cosine Integrals in DLMF.
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Exponential_integral&oldid=893419045'
Categories:
Hidden categories: