From: John J. L. <ph...@cs...> - 2001-02-23 12:38:04
|
On 22 Feb 2001, Victor S. Miller wrote: > Is there some way of having calculations which cause underflow > automatically set their result to 0.0? For example when I take > exp(a), where a is a floating point array. Not 'automatically', but: a = whatever() choose(greater(a, MAX), (a, MAX)) answer = exp(-a) any good? This is with a 1D array -- I haven't used higher dimensions much. John |