EasyManuals Logo
Home>Texas Instruments>Calculator>TI-92+

Texas Instruments TI-92+ User Manual

Texas Instruments TI-92+
507 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #272 background imageLoading...
Page #272 background image
(Credit to Ralf Fritzsch)
[6.60] Faster, more accurate exponential integrals
A post on the comp.sys.hp48 newsgroup announced that the HP-49G did not accurately find a
numerical value for this integral
3.724
e
x
x
dx
Except for a sign change, this is identical to the special function called the exponential integral:
Ei
(
x
)
=−
x
e
x
x
dx
The TI-89 / TI-92 Plus also cannot find accurate values for this integral, and it is no wonder, since at
the integrand singularity at x = 0, the limit is +infinity from the right and -infinity from the left. One
expedient solution is a routine specifically designed to find the exponential integral:
ei(x)
Func
©(x) exponential integral Ei
©13jul02/dburkett@infinet.com
local eps,euler,fpmin,maxit,k,fact,prev,sum1,term
6⁻12eps © Desired relative accuracy
.57721566490153euler © Euler's constant
100maxit © Maximum iterations allowed for convergence
1⁻900fpmin © Number near floating-point minimum
if x0:return "ei arg error" © Argument must be > 0
if x<fpmin then © Handle very small arguments
return euler+ln(x)
elseif x≤⁻ln(eps) then © Use power series for x < 25.840
0sum1
1→fact
for k,1,maxit
fact*x/kfact
fact/kterm
sum1+termsum1
if term<eps*sum1
return sum1+ln(x)+euler
endfor
return "ei failed series" © Return error string if convergence fails
else © Use asymptotic expansion for large arguments
0sum1
1→term
for k,1,maxit
termprev
term*k/xterm
if term<eps:goto l1
if term<prev then
sum1+termsum1
else
sum1-prevsum1
goto l1
endif
endfor
lbl l1
return ^(x)*(1+sum1)/x
6 - 114

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-92+ and is the answer not in the manual?

Texas Instruments TI-92+ Specifications

General IconGeneral
BrandTexas Instruments
ModelTI-92+
CategoryCalculator
LanguageEnglish

Related product manuals