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 > sprout::math::factorial_limit<T>() ? tmp
: sprout::math::detail::cosh_impl(
x,
tmp + 1 / sprout::math::factorial<T>(2 * n) * x2n,
tmp + x2n / sprout::math::factorial<T>(2 * n),
n + 1,
x2n * x * x
)