id summary reporter owner description type status milestone component version severity resolution keywords cc 6938 weibull_distribution accepts shape == 0, but shape should be >0 Florian Schoppmann John Maddock "In function `check_weibull_shape()` in file `math/distributions/weibull.hpp` a domain error is only raised if `shape < 0`. The error condition should probably be `shape <= 0`. With `shape == 0`, the Weibull distribution is not well-defined. Also, `shape == 0` contradicts the error message in the same function. E.g., the following example raises an overflow error, but not a domain error (as would be more appropriate IMHO): {{{ #include using namespace boost::math; int main() { std::cout << mean(weibull(0)) << std::endl; } }}}" Bugs closed Boost 1.51.0 math Boost 1.49.0 Problem fixed pbristow@…