1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout::exp, log

This commit is contained in:
bolero-MURAKAMI 2012-05-04 16:40:25 +09:00
parent d7c441ad69
commit 29a55bf31d
8 changed files with 163 additions and 3 deletions

View file

@ -19,7 +19,7 @@ namespace sprout {
return 2 * n + 1 > sprout::math::factorial_limit<T>() ? tmp
: sprout::math::detail::sinh_impl(
x,
tmp + 1 / sprout::math::factorial<T>(2 * n + 1) * x2n1,
tmp + x2n1 / sprout::math::factorial<T>(2 * n + 1),
n + 1,
x2n1 * x * x
)