gmp/mpir、mpfr和mpc接口到python 2.6+和3.x

gmpy2的Python项目详细描述


gmpy2是一个c编码的python扩展模块,支持多精度算法。除了支持gmp或mpir的多精度整数和有理数运算外,gmpy2还增加了对mpfr(正确舍入的实数浮点运算)和mpc(正确舍入的复杂浮点运算)库的支持。

2.0.8版有以下修复程序:

  1. Fix reference counting bug in left shift and right shift.
  2. Fix crash when converting string to mpfr and subnormalization is active.
  3. Fix int(mpfr) for negative values.
  4. Fix data corruption bug when using pack() on a list that contains instances of the mpz type.

2.0.7版有以下修复程序:

  1. math.floor(gmpy2.mpfr(‘inf’)) no longer segfaults.
  2. The “wheel” format is used for the Windows binaries.

2.0.6版有以下修复程序:

  1. setup.py no longer changes the meaning of –prefix.
  2. Using the ‘X’ format code now works properly (convert to hex using upper-case letters).

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将Int值传递给另一个类   在使用Sdin(或非交互式)输入| Java时调试奇怪的输入错误   java返回一个文本字符串作为响应struts2   java为什么我们不能在声明局部变量之前初始化它呢?   java从现有XML中读取值并将其填充到Json中   java Spring Boot+Maven:找不到repositoryFactoryBean   java使用regex表示“W o.Rd”。replaceAll(“单词”、“替换”)   java Sub resorce在Jersey REST API框架中不起作用   java在组件启动时,当所述报告存储在Sharepoint中时,是否可以加载预格式化的WebDataRocks报告?   java并发更新列表的最佳方法   servlets Java web应用程序对象调度   应用程序在点击按钮时崩溃,Android Studio(Java)   java如何为掷骰子游戏调用另一个类中的方法?