Boost logo

Boost :

Subject: Re: [boost] Help needed with some Math lib failures
From: John Maddock (john_at_[hidden])
Date: 2009-03-10 06:03:22


> and if one or more fail then let me know the failure message and I'll
>> put together a test case.
> I can reproduce the failure for dist1, dist2, dist3 and dist5. The full
> error message is too long for this list to accept, so I'm just posting
> the message of dist1.

Thanks, can I get you to do an SVN update and try the program below?

The output will be *very* verbose, so you may need to .zip it up and mail me
directly with it,

Many thanks, John.

#define BOOST_MATH_INSTRUMENT
#include <boost/math/distributions.hpp>

int main()
{
   double x = 30520, r = 130605, n = 130605, N = 523360, p =
1.315394088731268169855067478460234e-53, q = 1;

   boost::math::hypergeometric_distribution<> hyp(r, n, N);
   unsigned x_found = quantile(hyp, p);
   BOOST_MATH_INSTRUMENT_VARIABLE(x_found);

   return 0;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk