Re: How to avoid under/overflow?
- To: mathgroup at smc.vnet.net
- Subject: [mg37937] Re: How to avoid under/overflow?
- From: Tom Burton <tburton at brahea.com>
- Date: Wed, 20 Nov 2002 09:09:09 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 11/19/02 6:08 PM, in article areqqn$19h$1 at smc.vnet.net, "Kilian Weniger" <weniger at tm.uka.de> wrote: > is Mathematica able to compute the following equation with products of > veryvery-close-to-one values? > > f[R_, N_] := 1 - Exp[-N]*(1 - N/R)^(N - R - 1/2) > f[2^63, 10000] Sure. One way is to express the second argument as a real number with more than than the default precision: f[2^63, SetPrecision[10000,30]]