mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add math::copysign
fix hyperbolic and exponental functions: for special values
This commit is contained in:
parent
a27c83e939
commit
32c3ba02d4
50 changed files with 540 additions and 216 deletions
|
@ -134,7 +134,7 @@ namespace sprout {
|
|||
generate_1_1(RealType r1, Random const& rnd) const {
|
||||
return generate_2(
|
||||
rnd.engine(), r1, rnd.result(),
|
||||
sprout::sqrt(-result_type(2) * sprout::log(result_type(1) - rnd.result())), true
|
||||
sprout::sqrt(-result_type(2) * sprout::math::log(result_type(1) - rnd.result())), true
|
||||
);
|
||||
}
|
||||
template<typename Engine, typename Random>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue