是否有C / C ++,它允许任意precision指数任意precision浮点库? [英] Is there an arbitrary precision floating point library for C/C++ which allows arbitrary precision exponents?

查看:90
本文介绍了是否有C / C ++,它允许任意precision指数任意precision浮点库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个任意precision浮动的C / C点库++(纯C是preferred)。我需要任意precision指数。 GMP和MPFR使用固定大小的指数,所以他们没有资格(我有解决方法的一些想法,但我preFER出的现成的解决方案)。这将是一个不错的功能,如果指数precision可自动调整至prevent无穷值。

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据我所知。但是,弗雷德里克·约翰森的 ARB 包含一个名为 fmpr模块提供浮点数任意precision指数。

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 ++,它允许任意precision指数任意precision浮点库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆