mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix math functions
This commit is contained in:
parent
5d809ef5c9
commit
fa1d769bdf
76 changed files with 582 additions and 169 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue