mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix exponential functions
This commit is contained in:
parent
32c3ba02d4
commit
dad3acceea
41 changed files with 180 additions and 354 deletions
|
@ -10,7 +10,6 @@
|
|||
#include <sprout/math/copysign.hpp>
|
||||
#include <sprout/math/cos.hpp>
|
||||
#include <sprout/type_traits/enabler_if.hpp>
|
||||
#include <sprout/type_traits/float_promote.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace math {
|
||||
|
@ -47,17 +46,8 @@ namespace sprout {
|
|||
return sprout::math::detail::sin(static_cast<double>(x));
|
||||
}
|
||||
} // namespace detail
|
||||
//
|
||||
// sin
|
||||
//
|
||||
template<
|
||||
typename ArithmeticType,
|
||||
typename sprout::enabler_if<std::is_arithmetic<ArithmeticType>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR typename sprout::float_promote<ArithmeticType>::type
|
||||
sin(ArithmeticType x) {
|
||||
return sprout::math::detail::sin(x);
|
||||
}
|
||||
|
||||
using sprout::math::detail::sin;
|
||||
} // namespace math
|
||||
|
||||
using sprout::math::sin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue