ApFloat is a library which contains arbitrary-precision approximations of trigometric functions and non-integer powers both; however, it uses its own internal representations, rather than BigDecimal
and BigInteger
. I haven’t used it before, so I can’t vouch for its correctness or performance characteristics, but the api seems fairly complete.