是否有任意精度浮点库的C / C ++允许任意精度指数? [英] Is there an arbitrary precision floating point library for C/C++ which allows arbitrary precision exponents?
问题描述
我正在寻找一个用于C / C ++的任意精度浮点库(简单C是首选)。我需要任意精度指数。 GMP和MPFR使用固定大小的指数,因此它们不合格(我有一些解决方法的想法,但我更喜欢开箱即用的解决方案)。如果指数精度可以自动调整以防止无穷大值,这将是一个很好的功能。
I'm looking for an arbitrary precision floating point library for C/C++ (plain C is preferred). I need arbitrary precision exponents. GMP and MPFR use fixed size exponents, so they are ineligible (I have some ideas for workarounds, but I prefer an out-of-the-box solution). It would be an nice feature if the exponent precision can be adjusted automatically to prevent infinity-values.
如果你确定这样的库不存在,请说所以。
If you know for sure that such an library does not exist, please say so.
推荐答案
据我所知,没有像GMP / MPFR那样的主流。但Fredrik Johansson的 arb 包含一个名为 fmpr的模块提供任意精度指数的浮点数。
There is nothing as mainstream as GMP/MPFR as far as I know. But Fredrik Johansson's arb contains a module called fmpr that provides floating-point numbers with arbitrary precision exponents.
这篇关于是否有任意精度浮点库的C / C ++允许任意精度指数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!