[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] Re: GSL overflow/underflow related to execution speed?
From: |
Bojan Nikolic |
Subject: |
[Help-gsl] Re: GSL overflow/underflow related to execution speed? |
Date: |
Tue, 22 Dec 2009 09:43:00 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi,
It seems unlikely that speed of execution will play a part in the
outcome of this program.
I've not used Ocaml but one possibility is that string_of_float commands
modify their arguments? Perhaps when the numbers in piA or piB are very
small they get truncated to zero to match what is actually printed to
the screen. This would avoid underflow errors at least.
Also might be worth using exp1m function instead of exp to compute the
exponential.
Best,
Bojan
--
Bojan Nikolic || http://www.bnikolic.co.uk