Special Math Functions¶
CalcpadCE builds special functions from first principles: with $Integral, $Sum, $Product and a handful of standard transcendentals, the gamma, beta, error, Riemann zeta, Fresnel and elliptic families — together with the digamma and polygamma, Dirichlet eta, sine and cosine integrals, logarithmic and exponential integrals, Dawson and Jacobi elliptic functions — are defined directly from their integral representations and called like any other function.
The companion worksheet walks through that construction end to end. Each function is given by its defining integral or series, evaluated symbolically and plotted across a representative range, with checks against known identities (factorials, \(\zeta(2) = \pi^2/6\), Apéry's constant, …) so you can verify the numerical accuracy at a glance. The result is a transparent reference that doubles as a template for any further special function you might need.
Special Math Functions¶
Builds the gamma, beta, zeta, error, Fresnel and elliptic families from their integral representations using $Integral, $Sum and the standard transcendentals — each one defined, evaluated and plotted across a representative range.
#md on
#rad
'<!--'PlotWidth = 200','PlotHeight = 120','PlotAdaptive = 0'-->
'This workheet defines some of the most common special functions in ℝ, by using the existing numerical methods in CalcpadCE only in stable and precise way (as possible)
'##### Gamma and related functions
'Euler-Mascheroni constant -'γ = 0.57721566490153286
'**Gamma function** -' _
Γ(x) = (1/x)*$Integral{(-ln(t))^x @ t = 0 : 1}'<br/>
$Plot{Γ(x) @ x = 0.04 : 5}
'Checks:'Γ(0)','Γ(4)'= 3!,'Γ(5)'= 4!
x = 50','x!','(Γ(x + 1) - x!)/x!
'**Digamma function** -' _
ψ(x) = $Integral{((1 - t^(x - 1))/(1 - t)) @ t = 0 : 1} - γ
'<br/>**Polygamma function** -' _
ψ_m(m; x) = (-1)^(m + 1)*$Integral{((-ln(t))^m*t^(x - 1))/(1 - t) @ t = ε : 1}', where'ε = 10^-300
'<!--'PlotHeight = 200'-->
$Plot{max(ψ(x); -15) & min(ψ_m(1; x); 15) & max(ψ_m(2; x); -15) & min(ψ_m(3; x); 15) @ x = 0.04 : 4}
'<!--'PlotHeight = 120'-->
'Checks:
ψ_m(1; 1) - π^2/6
ψ_2,1 = -2.4041138063191886'-2 times Apéry constant
ψ_m(2; 1) - ψ_2,1
ψ_m(3; 1) - π^4/15
'**Incomplete Gamma functions**:
γ(s; x) = $Integral{(-ln(t))^(s - 1) @ t = e^(-x) : 1}'or' _
γ(s; x) = (1/s)*($Integral{(-ln(t))^s @ t = e^(-x) : 1} + x^s*e^(-x))
Γ_(s; x) = $Integral{(-ln(t))^(s - 1) @ t = 0 : e^(-x)}'or' _
Γ_(s; x) = (1/s)*($Integral{(-ln(t))^s @ t = 0 : e^(-x)} - x^s*e^(-x))
$Plot{γ(2; x) & Γ_(2; x) @ x = 0 : 10}
$Plot{γ(3; x) & Γ_(3; x) @ x = 0 : 10}
'**Beta function** -'B(x; y) = Γ(x)*Γ(y)/Γ(x + y)
$Map{ln(B(x; y)) @ x = 0 : 3 & y = 0 : 2}
'Checks:'B(3; 2)*12','B(4; 3)*60
'**Incomplete Beta function** -' _
B(x; a; b) = $Integral{t^(a - 1)*(1 - t)^(b - 1) @ t = ε : x}
Precision = 10^-6
$Map{ln(B(1; x; y)) @ x = 10^-4 : 3 & y = 10^-4 : 2}
'Checks:'B(1; 1; 1)','B(1; 2; 3)*12','-B(2; 2; 2)*3/2
'**Riemann Zeta function** -' _
ζ(x) = 1/Γ(x)*$Integral{(-ln(t))^(x - 1)/(1 - t) @ t = 0 : 1}
$Plot{ζ(x) & 0^0 @ x = 1.2 : 6}
'Checks:
Precision = 10^-15
ζ(2) - π^2/6
ζ_3 = 1.2020569031595943'- Apéry constant
ζ(3) - ζ_3
ζ(4) - π^4/90
Precision = 10^-4
'**Dirichlet Eta function** -' _
η(x) = 1/Γ(x)*$Integral{(-ln(t))^(x - 1)/(1 + t) @ t = 0 : 1}
$Plot{η(x) & 0^0 @ x = 0 : 6}
'Checks:
η_0.5 = 0.60489864342163037
η(0.5) - η_0.5
Precision = 10^-15
η(1) - ln(2)
η(2) - π^2/12
η(4) - 7*π^4/720
'**Error function** -' _
erf_e(x) = 2*sign(x)/sqrt(π)*$Integral{e^-t^2 @ t = 0 : abs(x)}', ' _
erfc_e(x) = 1 - erf_e(x)
$Plot{erf_e(x) @ x = -5 : 5}
'##### Integral functions
'**Fresnel integrals**:' _
C(x) = $Integral{cos(t^2) @ t = 0 : x}', ' _
S(x) = $Integral{sin(t^2) @ t = 0 : x}
$Plot{C(x) & S(x) @ x = -5 : 5}
'<!--'PlotWidth = 125'-->'
$Plot{C(t)^S(t) @ t = 0 : 5}
'<!--'PlotWidth = 200'-->'
'<br/>**Sine and cosine integrals**:
Ci_e(x) = if(x ≡ 0; -1÷0; γ + ln(x) + $Integral{(cos(t) - 1)/t @ t = 0 : x})', ' _
Si_e(x) = if(x ≡ 0; 0; $Integral{sin(t)/t @ t = 0 : x})
$Plot{Ci_e(t) @ t = 0 : 15}
$Plot{Si_e(t) @ t = -15 : 15}
'<br/>**Hyperbolic sine and cosine integrals**:
Chi_e(x) = if(x ≡ 0; -1÷0; γ + ln(x) + $Integral{(cosh(t) - 1)/t @ t = 0 : x})', ' _
Shi_e(x) = if(x ≡ 0; 0; $Integral{sinh(t)/t @ t = 0 : x})
$Plot{Chi_e(t) @ t = 0 : 4}
$Plot{Shi_e(t) @ t = -3 : 3}
li_2 = 1.0451637801174928
'**Logarithmic Integral** -' _
Li_e(x) = $Integral{1/ln(t) @ t = 2 : x}', ' _
li_e(x) = if(x < 1; $Integral{1/ln(t) @ t = 0 : x}; Li_e(x) + li_2)
$Plot{li_e(x) @ x = 0 : 4}
'<br/>**Exponential Integral** -' _
E_1(x) = -$Integral{1/ln(t) @ t = 0 : e^(-x)}', ' _
Ei_e(x) = switch(x < 0; -E_1(-x); x > 0; li_2 + Li_e(e^x))
$Plot{Ei_e(x) @ x = -1 : 4}
'<br/>**Dawson′s Integral** -' _
F_D(x) = e^(-x^2)*$Integral{e^(t^2) @ t = 0 : x}'<br/>
$Plot{F_D(x) @ x = -10 : 10}
'##### Elliptic integrals
'Incomplete elliptic integral of the first kind -'
F(φ; m) = $Integral{1/sqrt(max(1 - m*sin(t)^2; ε)) @ t = 0 : φ}
'Complete elliptic integral of the first kind -' _
K(m) = F(π/2; m)
$Plot{K(x) @ x = -1 : 1}
'Incomplete elliptic integral of the second kind -' _
E_(φ; m) = $Integral{sqrt(1 - m*sin(t)^2) @ t = 0 : φ}
'Complete elliptic integral of the second kind -' _
E(m) = E_(π/2; m)
$Plot{E(x) @ x = -1 : 1}
'Incomplete elliptic integral of the third kind -
Π_(n; φ; m) = $Integral{1/(max(1 - n*sin(t)^2; ε)*sqrt(max(1 - m*sin(t)^2; ε))) @ t = 0 : φ}
'Complete elliptic integral of the third kind' _
Π(n; m) = Π_(n; π/2; m)
Π(0.4; 0.6)
$Plot{Π(x; 0.6) @ x = -1 : 1}
'##### Jacobi elliptic functions
'**Jacobi elliptic amplitude**
'Gudermannian function -'gd(x) = asin(tanh(x))' = am(u; 1)
'Approximate value for small *u*, *m*, *m*′
am_(u; m) = gd(u) + (1 - m)/4*(sinh(u)*cosh(u) - u)*sech(u)
'To avoid numerical instabilities, the function for larger values of u is reduced to the interval [0; K(m)] where the elliptic integral is evaluated within [0; π/2]. This is performed by using the following quasi-periodical relationships:
'> **am**(*u* + 2K(*m*), *m*) = **am**(*u*, *m*) + π, for *u* ≥ 2K(*m*)<br/> _
**am**(*u*, *m*) = π - **am**(2K(*m*) - *u*, *m*), for *u* < 2K(*m*)
'Function for evaluation of Jacobi elliptic amplitude:
am(u; m) = switch(
m ≡ 0; u;
m ≡ 1; asin(tanh(u));
$block{
K_m2 = K(m)*2;
s = sign(u); u = abs(u);
n = floor(u/(K_m2));
u = u - n*K_m2;
y = u*π/(K_m2);
am = if(
u > K_m2/2;
π - $Root{F(φ; m) = K_m2 - u @ φ = 0 : π/2};
$Root{F(φ; m) = u @ φ = max(0; y - 1) : min(π/2; y + 1)});
s*(am + n*π) _
} _
)
'Plot for'm = 0.999999','1 - m
Precision = 10^-15/cbrt(1 - m)^2
$Plot{am(x; m) & x*π/(2*K(m)) @ x = -50 : 50}
'Check: **am**(*x*; 0) = x
$Plot{am(x; 0) @ x = -10 : 10}
'Check: **am**(*x*; 1) = **gd**(*x*)'
$Plot{am(x; 1) @ x = -10 : 10}
'<br/>**Jacobi elliptic functions**
sn(u; m) = sin(am(u; m))
cn(u; m) = cos(am(u; m))
'
dn(u; m) = $block{
sn = sin(am(u; m));
sqrt(1 - m*sn*sn)}
'
cs(u; m) = $block{
φ = am(u; m);
cos(φ)/sin(φ)}
'
cd(u; m) = $block{
φ = am(u; m);
sn = sin(φ);
cn = cos(φ);
dn = sqrt(1 - m*sn*sn);
cn÷dn}
'
dc(u; m) = $block{
φ = am(u; m);
sn = sin(φ);
cn = cos(φ);
dn = sqrt(1 - m*sn*sn);
dn÷cn}
'
sc(u; m) = $block{
φ = am(u; m);
sin(φ)/cos(φ)}
'
sd(u; m) = $block{
φ = am(u; m);
sn = sin(φ);
dn = sqrt(1 - m*sn*sn);
sn÷dn}
'
ds(u; m) = $block{
φ = am(u; m);
sn = sin(φ);
dn = sqrt(1 - m*sn*sn);
dn÷sn}
Precision = 10^-15
'Checks:
am(1; 0.5)','dn(1; 0.5)
s = sn(1; 0.5)','c = cn(1; 0.5)
c^2 + s^2
'##### Reciprocal Jacobi elliptic functions
ns(u; m) = 1/sn(u; m)',' _
nc(u; m) = 1/cn(u; m)',' _
nd(u; m) = 1/dn(u; m)
'##### Bessel functions
'Bessel functions of the first kind -' _
J(n; x) = 1/π*$Integral{cos(n*θ - x*sin(θ)) @ θ = 0 : π}
$Plot{J(0; x) & J(1; x) & J(2; x) @ x = 0 : 25}
'Asymptotic expansion (use for x > 150) -' _
J_a(n; x) = sqrt(2/(π*x))*cos(x - n*π/2 - π/4)
$Plot{J(0; x) & J_a(0; x) @ x = 200 : 220}
'Dynamic limit for numerical stability -' _
inf(x) = 20/(1 + ln(max(x; e)))
$Plot{0 & inf(x) @ x = 0 : 25}
'Bessel functions of the second kind
Y(n; x) = 1/π*$Integral{sin(x*sin(θ) - n*θ) @ θ = 0 : π} - 1/π*$Integral{(exp(n*t) + (-1)^n*exp(-n*t))*exp(-x*sinh(t)) @ t = 0 : inf(x)}
'Asymptotic expansion (use for x > 150) -' _
Y_a(n; x) = sqrt(2/(π*x))*sin(x - n*π/2 - π/4)
$Plot{max(Y(0; x); -2) & max(Y(1; x); -2) & max(Y(2; x); -2) @ x = 0 : 25}
$Plot{Y(0; x) & Y_a(0; x) @ x = 200 : 220}
'Recurrence test:'n = 1', 'x = 100
Y(n - 1; x) + Y(n + 1; x) - (2*n/x)*Y(n; x)
$Plot{Y(n - 1; x) + Y(n + 1; x) - (2*n/x)*Y(n; x) @ x = 50 : 100}
'Wronskian test: W(_x_) = J₁(_x_) · Y₀(_x_) − J₁(_x_) · Y₀(_x_) = 2 / (π · _x_)
Wr(x) = J(1; x)*Y(0; x) - J(0; x)*Y(1; x)
Wr(x) - 2/(π*x)
$Plot{Wr(x) - 2/(π*x) @ x = 100 : 200}
'Modified Bessel functions of the first kind
'Modified Bessel functions of the second kind
'Airy functions
'<p style="page-break-before:always;"> </p>
'##### Lambert W function
'Helper function -'ln_2(x) = ln(ln(x))
'Approximate value -'W_a(x) = ln(x) - ln_2(x)
'Secondary value -'W_b(x) = ln_2(x)/ln(x)
'Lower bound -'W_btm(x) = W_a(x) + 0.5*W_b(x)
'Upper bound -'W_top(x) = W_a(x) + e/(e - 1)*W_b(x)
'The function -'W(x) = if(x < e;
$Root{ξ*exp(ξ) = x @ ξ = -1 : 1};
$Root{ξ*exp(ξ) = x @ ξ = W_btm(x) : W_top(x)})
$Plot{W(x) @ x = -1 : 10}
'Omega constant -'Ω = 0.567143290409783873
'Check:'W(1) - Ω','W(e) - 1
'Relative error plot
$Plot{if(abs(x) < 1; abs(W(x*e^x) - x); abs(W(x*e^x)/x - 1)) @ x = -1 : 100}
This workheet defines some of the most common special functions in ℝ, by using the existing numerical methods in CalcpadCE only in stable and precise way (as possible)
Euler-Mascheroni constant - γ = 0.577
Gamma function - Γ ( x ) = 1x · 1∫0 ( -ln ( t ) ) x dt
Checks: Γ ( 0 ) = +∞ , Γ ( 4 ) = 6 = 3!, Γ ( 5 ) = 24 = 4!
x = 50 , x! = 50! = 3.04×1064 , Γ ( x + 1 ) − x!x! = Γ ( 50 + 1 ) − 50!50! = -3.84×10-16
Digamma function - ψ ( x ) = 1∫0 1 − tx − 11 − t dt − γ
Polygamma function - ψm ( m; x ) = ( -1 ) m + 1 · 1∫ε ( -ln ( t ) ) m · tx − 11 − t dt , where ε = 10-300
Checks:
ψm ( 1; 1 ) − π26 = ψm ( 1; 1 ) − 3.1426 = 2.22×10-16
ψ2,1 = -2.4 -2 times Apéry constant
ψm ( 2; 1 ) − ψ2,1 = ψm ( 2; 1 ) − ( -2.4 ) = -8.44×10-15
ψm ( 3; 1 ) − π415 = ψm ( 3; 1 ) − 3.14415 = 2.66×10-15
Incomplete Gamma functions:
γ ( s; x ) = 1∫e-x ( -ln ( t ) ) s − 1 dt or γ ( s; x ) = 1s · ( 1∫e-x ( -ln ( t ) ) s dt + xs · e-x)
Γ_ ( s; x ) = e-x∫0 ( -ln ( t ) ) s − 1 dt or Γ_ ( s; x ) = 1s · ( e-x∫0 ( -ln ( t ) ) s dt − xs · e-x)
Beta function - B ( x; y ) = Γ ( x ) · Γ ( y ) Γ ( x + y )
Checks: B ( 3; 2 ) · 12 = 1 , B ( 4; 3 ) · 60 = 1
Incomplete Beta function - B ( x; a; b ) = x∫ε ta − 1 · ( 1 − t ) b − 1 dt
Precision = 10-6
Checks: B ( 1; 1; 1 ) = 1 , B ( 1; 2; 3 ) · 12 = 1 , -B ( 2; 2; 2 ) · 32 = 1
Riemann Zeta function - ζ ( x ) = 1Γ ( x ) · 1∫0 ( -ln ( t ) ) x − 11 − t dt
Checks:
Precision = 10-15
ζ ( 2 ) − π26 = ζ ( 2 ) − 3.1426 = 2.22×10-16
ζ3 = 1.2 - Apéry constant
ζ ( 3 ) − ζ3 = ζ ( 3 ) − 1.2 = 4×10-15
ζ ( 4 ) − π490 = ζ ( 4 ) − 3.14490 = 0
Precision = 10-4 = 0.0001
Dirichlet Eta function - η ( x ) = 1Γ ( x ) · 1∫0 ( -ln ( t ) ) x − 11 + t dt
Checks:
η0.5 = 0.605
η ( 0.5 ) − η0.5 = η ( 0.5 ) − 0.605 = 4.64×10-8
Precision = 10-15
η ( 1 ) − ln ( 2 ) = 7.77×10-16
η ( 2 ) − π212 = η ( 2 ) − 3.14212 = -2.22×10-16
η ( 4 ) − 7 · π4720 = η ( 4 ) − 7 · 3.144720 = -1.11×10-16
Error function - erfe ( x ) = 2 · sign ( x )   √ π · | x |∫0 e- ( t2 ) dt , erfce ( x ) = 1 − erfe ( x )
Fresnel integrals: C ( x ) = x∫0 cos ( t2 ) dt , S ( x ) = x∫0 sin ( t2 ) dt
Sine and cosine integrals:
Cie ( x ) = {if x ≡ 0: -1 / 0
else: γ + ln ( x ) + x∫0 cos ( t ) − 1t dt , Sie ( x ) = {if x ≡ 0: 0
else: x∫0 sin ( t ) t dt
Hyperbolic sine and cosine integrals:
Chie ( x ) = {if x ≡ 0: -1 / 0
else: γ + ln ( x ) + x∫0 cosh ( t ) − 1t dt , Shie ( x ) = {if x ≡ 0: 0
else: x∫0 sinh ( t ) t dt
li2 = 1.05
Logarithmic Integral - Lie ( x ) = x∫2 1ln ( t ) dt , lie ( x ) = {if x < 1: x∫0 1ln ( t ) dt
else: Lie ( x ) + li2
Exponential Integral - E1 ( x ) = - e-x∫0 1ln ( t ) dt , Eie ( x ) = {if x < 0: -E1 ( -x )
else if x > 0: li2 + Lie ( ex )
Dawson′s Integral - FD ( x ) = e- ( x2 ) · x∫0 et2 dt
Incomplete elliptic integral of the first kind -
F ( φ; m ) = φ∫0 1   √ max ( 1 − m · sin ( t ) 2; ε ) dt
Complete elliptic integral of the first kind - K ( m ) = F (π2; m)
Incomplete elliptic integral of the second kind - E_ ( φ; m ) = φ∫0   √ 1 − m · sin ( t ) 2 dt
Complete elliptic integral of the second kind - E ( m ) = E_ (π2; m)
Incomplete elliptic integral of the third kind -
Π_ ( n; φ; m ) = φ∫0 1max ( 1 − n · sin ( t ) 2; ε ) ·   √ max ( 1 − m · sin ( t ) 2; ε ) dt
Complete elliptic integral of the third kind Π ( n; m ) = Π_ (n; π2; m)
Π ( 0.4; 0.6 ) = 2.59
Jacobi elliptic amplitude
Gudermannian function - gd ( x ) = asin ( tanh ( x ) ) = am(u; 1)
Approximate value for small u, m, m′
am_ ( u; m ) = gd ( u ) + 1 − m4 · ( sinh ( u ) · cosh ( u ) − u ) · sech ( u )
To avoid numerical instabilities, the function for larger values of u is reduced to the interval [0; K(m)] where the elliptic integral is evaluated within [0; π/2]. This is performed by using the following quasi-periodical relationships:
am(u + 2K(m), m) = am(u, m) + π, for u ≥ 2K(m)
am(u, m) = π - am(2K(m) - u, m), for u < 2K(m)
Function for evaluation of Jacobi elliptic amplitude:
am ( u; m ) = {if m ≡ 0: u
else if m ≡ 1: asin ( tanh ( u ) )
else: 🞀Km2 = K ( m ) · 2
s = sign ( u )
u = | u |
n = floor(uKm2)
u = u − n · Km2
y = u · πKm2
am = {if u > Km22: π − $Root{F ( φ; m ) = Km2 − u; φ ∈ [0; π2]}
else: $Root{F ( φ; m ) = u; φ ∈ [max ( 0; y − 1 ) ; min(π2; y + 1)]}
s · ( am + n · π )
Plot for m = 1 , 1 − m = 1 − 1 = 10-6
Precision = 10-15 3  √ 1 − m2 = 10-15 3  √ 1 − 12 = 10-11
Check: am(x; 0) = x
Check: am(x; 1) = gd(x)
Jacobi elliptic functions
sn ( u; m ) = sin ( am ( u; m ) )
cn ( u; m ) = cos ( am ( u; m ) )
dn ( u; m ) = 🞀sn = sin ( am ( u; m ) )
  √ 1 − m · sn · sn
cs ( u; m ) = 🞀φ = am ( u; m )
cos ( φ ) sin ( φ )
cd ( u; m ) = 🞀φ = am ( u; m )
sn = sin ( φ )
cn = cos ( φ )
dn =   √ 1 − m · sn · sn
cn / dn
dc ( u; m ) = 🞀φ = am ( u; m )
sn = sin ( φ )
cn = cos ( φ )
dn =   √ 1 − m · sn · sn
dn / cn
sc ( u; m ) = 🞀φ = am ( u; m )
sin ( φ ) cos ( φ )
sd ( u; m ) = 🞀φ = am ( u; m )
sn = sin ( φ )
dn =   √ 1 − m · sn · sn
sn / dn
ds ( u; m ) = 🞀φ = am ( u; m )
sn = sin ( φ )
dn =   √ 1 − m · sn · sn
dn / sn
Precision = 10-15
Checks:
am ( 1; 0.5 ) = 0.932 , dn ( 1; 0.5 ) = 0.823
s = sn ( 1; 0.5 ) = 0.803 , c = cn ( 1; 0.5 ) = 0.596
c2 + s2 = 0.5962 + 0.8032 = 1
ns ( u; m ) = 1sn ( u; m ) , nc ( u; m ) = 1cn ( u; m ) , nd ( u; m ) = 1dn ( u; m )
Bessel functions of the first kind - J ( n; x ) = 1π · π∫0 cos ( n · θ − x · sin ( θ ) ) dθ
Asymptotic expansion (use for x > 150) - Ja ( n; x ) = 2π · x · cos(x − n · π2 − π4)
Dynamic limit for numerical stability - inf ( x ) = 201 + ln ( max ( x; e ) )
Bessel functions of the second kind
Y ( n; x ) = 1π · π∫0 sin ( x · sin ( θ ) − n · θ ) dθ − 1π · inf ( x ) ∫0 ( exp ( n · t ) + ( -1 ) n · exp ( -n · t ) ) · exp ( -x · sinh ( t ) ) dt
Asymptotic expansion (use for x > 150) - Ya ( n; x ) = 2π · x · sin(x − n · π2 − π4)
Recurrence test: n = 1 , x = 100
Y ( n − 1; x ) + Y ( n + 1; x ) − 2 · nx · Y ( n; x ) = Y ( 1 − 1; 100 ) + Y ( 1 + 1; 100 ) − 2 · 1100 · Y ( 1; 100 ) = -1.25×10-16
Wronskian test: W(x) = J₁(x) · Y₀(x) − J₁(x) · Y₀(x) = 2 / (π · x)
Wr ( x ) = J ( 1; x ) · Y ( 0; x ) − J ( 0; x ) · Y ( 1; x )
Wr ( x ) − 2π · x = Wr ( 100 ) − 23.14 · 100 = 2.21×10-16
Modified Bessel functions of the first kind
Modified Bessel functions of the second kind
Airy functions
Helper function - ln2 ( x ) = ln ( ln ( x ) )
Approximate value - Wa ( x ) = ln ( x ) − ln2 ( x )
Secondary value - Wb ( x ) = ln2 ( x ) ln ( x )
Lower bound - Wbtm ( x ) = Wa ( x ) + 0.5 · Wb ( x )
Upper bound - Wtop ( x ) = Wa ( x ) + ee − 1 · Wb ( x )
The function - W ( x ) = {if x < e: $Root{ξ · exp ( ξ ) = x; ξ ∈ [-1; 1]}
else: $Root{ξ · exp ( ξ ) = x; ξ ∈ [Wbtm ( x ) ; Wtop ( x ) ]}
Omega constant - Ω = 0.567
Check: W ( 1 ) − Ω = W ( 1 ) − 0.567 = 0 , W ( e ) − 1 = W ( 2.72 ) − 1 = 0
Relative error plot
Spotted an error? Edit these examples.