mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix erf, erfc
fix for special values: trigonometric functions
This commit is contained in:
parent
5f40808f75
commit
a27c83e939
12 changed files with 313 additions and 87 deletions
|
@ -19,8 +19,8 @@ namespace sprout {
|
|||
>
|
||||
inline SPROUT_CONSTEXPR FloatType
|
||||
hypot(FloatType x, FloatType y) {
|
||||
return y == 0 ? sprout::fabs(x)
|
||||
: x == 0 ? sprout::fabs(y)
|
||||
return y == 0 ? sprout::math::fabs(x)
|
||||
: x == 0 ? sprout::math::fabs(y)
|
||||
: y == std::numeric_limits<FloatType>::infinity() || y == -std::numeric_limits<FloatType>::infinity()
|
||||
? std::numeric_limits<FloatType>::infinity()
|
||||
: x == std::numeric_limits<FloatType>::infinity() || x == -std::numeric_limits<FloatType>::infinity()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue