fix math functions

This commit is contained in:
bolero-MURAKAMI 2013-02-14 18:02:43 +09:00
parent 5d809ef5c9
commit fa1d769bdf
76 changed files with 582 additions and 169 deletions

View file

@ -127,8 +127,8 @@ namespace sprout {
return sprout::random::random_result<Engine, normal_distribution>(
cached_rho
* (valid
? sprout::cos(result_type(2) * sprout::math::pi<result_type>() * r1)
: sprout::sin(result_type(2) * sprout::math::pi<result_type>() * r1)
? sprout::cos(sprout::math::two_pi<result_type>() * r1)
: sprout::sin(sprout::math::two_pi<result_type>() * r1)
)
* sigma_ + mean_,
eng,