[Boost-bugs] [Boost C++ Libraries] #6069: binomial_distribution seems to throw when it shouldn't

Subject: [Boost-bugs] [Boost C++ Libraries] #6069: binomial_distribution seems to throw when it shouldn't
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-28 23:42:47


#6069: binomial_distribution seems to throw when it shouldn't
---------------------------------------------+------------------------------
 Reporter: Jordan DeLong <delong.j@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: binomial_distribution |
---------------------------------------------+------------------------------
 The following raises an exception, but from the documentation it appears
 that it should be a valid call:

   quantile(binomial_distribution<double>(10, 1), 1.0f - (0.0001f)));

 The exception says:

   Error in function boost::math::cdf(binomial_distribution<d> const&, d):
 Number of Successes argument is -nan, but must be >= 0 !

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6069>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC