mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add sprout::exp, log
This commit is contained in:
parent
d7c441ad69
commit
29a55bf31d
8 changed files with 163 additions and 3 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue