From: Edward Smith-Rowland <3dw4rd@verizon.net> Date: Wed, 30 Dec 2009 02:08:23 +0000 (+0000) Subject: random.h: Fix equation in comment of Weibull distro. X-Git-Tag: releases/gcc-4.5.0~1486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53bc54ecc08c35b05c33cf3493c90af73bcc6478;p=thirdparty%2Fgcc.git random.h: Fix equation in comment of Weibull distro. 2009-12-29 Edward Smith-Rowland <3dw4rd@verizon.net> * include/bits/random.h: Fix equation in comment of Weibull distro. From-SVN: r155515 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 22c8a637e282..43130195cbc0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2009-12-29 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/bits/random.h: Fix equation in comment of Weibull distro. + 2009-12-29 Paolo Carlini * include/std/bitset (bitset<>::to_ullong, _M_do_to_ullong): Add. diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index ab661e9594cb..c86eb9947f84 100644 --- a/libstdc++-v3/include/bits/random.h +++ b/libstdc++-v3/include/bits/random.h @@ -3753,8 +3753,8 @@ namespace std * @brief A weibull_distribution random number distribution. * * The formula for the normal probability density function is - * @f$ p(x|\alpha,\beta) = \frac{a}{b} (frac{x}{b})^{a-1} - * \exp{(-(frac{x}{b})^a)} @f$. + * @f$ p(x|\alpha,\beta) = \frac{\alpha}{\beta} (\frac{x}{\beta})^{\alpha-1} + * \exp{(-(\frac{x}{\beta})^\alpha)} @f$. */ template class weibull_distribution