ionspin / kotlin-multiplatform-bignum

A Kotlin multiplatform library for arbitrary precision arithmetics
Apache License 2.0
350 stars 41 forks source link

Implement exponentiation of BigDecimals by other BigDecimals #197

Open JoonasC opened 2 years ago

JoonasC commented 2 years ago

Is your feature request related to a problem? Please describe. Exponentiation of BigDecimals by other BigDecimals is currently not supported, which forces a conversion to int value meaning precision loss.

Describe the solution you'd like Implement exponentiation of BigDecimals by other BigDecimals.

hakanai commented 2 years ago

Having exp(x) would also make it possible to implement cosh(x), sinh(x), tanh(x) with not much extra effort.

The same is sort of true for sin(x), cos(x), tan(x) as well but you need complex number support for those. ;)