[Boost-bugs] [Boost C++ Libraries] #6939: pdf(weibull(shape, scale), 0) == 0 even if shape <= 1

Subject: [Boost-bugs] [Boost C++ Libraries] #6939: pdf(weibull(shape, scale), 0) == 0 even if shape <= 1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-24 14:39:42


#6939: pdf(weibull(shape, scale), 0) == 0 even if shape <= 1
-------------------------------------------------------------+--------------
 Reporter: Florian Schoppmann <Florian.Schoppmann@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
-------------------------------------------------------------+--------------
 If shape == 1, then we should have `pdf(weibull(shape, scale), 0) == 1`
 and if shape < 1, `cdf(weibull(shape, scale), 0)` should call
 `raise_overflow_error`.

 Example:
 {{{
 #include <boost/math/distributions/weibull.hpp>
 using namespace boost::math;
 int main() {
     std::cout << pdf(weibull(0.5), 0) << std::endl
      << pdf(weibull(1), 0) << std::endl;
 }
 }}}
 This prints:
 {{{
 0
 0
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6939>
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:09 UTC