Skip Menu |

This queue is for tickets about the Math-Evol CPAN distribution.

Report information
The Basics
Id: 44777
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Math-Evol

People
Owner: Nobody in particular
Requestors: t_mcdonald [...] meng.ucl.ac.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.11



Subject: Log of zero error
Date: Fri, 3 Apr 2009 10:14:31 +0100
To: <bug-Math-Evol [...] rt.cpan.org>
From: "Tim McDonald" <t_mcdonald [...] meng.ucl.ac.uk>
Minor error in Math Evol the causes a failure when the random number generator return zero (what are the odds J ). Cheers TIm Possible fix is to change line 261 from: $gaussn_a = sqrt(-2.0 * log(rand)); To: $gaussn_a = sqrt(-2.0 * log(rand(0.999)+0.001));
On Fri Apr 03 05:15:12 2009, t_mcdonald@meng.ucl.ac.uk wrote: Show quoted text
> Minor error in Math Evol the causes a failure when the random number > generator return zero (what are the odds J ). > Cheers > TIm > Possible fix is to change line 261 from: > $gaussn_a = sqrt(-2.0 * log(rand)); > To: > $gaussn_a = sqrt(-2.0 * log(rand(0.999)+0.001)); >
Fixed in 1.11, apologies for the delay... Peter