Java BigDecimal trigonometric methods

前端 未结 5 1458
一个人的身影
一个人的身影 2020-11-27 08:42

I am developing a mathematical parser which is able to evaluate String like \'5+b*sqrt(c^2)\'. I am using ANTLR for the parsing and make good progress. Now I fe

5条回答
  •  抹茶落季
    2020-11-27 08:50

    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.

提交回复
热议问题