Dan's Transformation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Dan's Transformation

Martin Holt
Hi Dan,
 
Tentatively, because playing with infinities and 0 is potentially risky, so using a calculator:
 
If first variable = 0, then exp0 = 1 and then 1/exp0 = 1.
 
If first variable = 20, say, then exp20 = 485165195.4 and 1/exp20 = 0.000000009.
So, as first variable 'x' increases towards +Inf, the function 1/exp(x) tends towards 0 and does not go below 0.
 
 
So, if x= 0, 1/exp(0) =1 and if x=+Inf, 1/exp(+Inf) = 0 as required. This assumes that x lies between 0 and +Inf: you'd need to check with any potential -ve x's as to whether the function does what you want it to do.
 
Martin Holt
Medical Statistician