sympy hangs when trying to solve a simple algebraic equation

让人想犯罪 __ 提交于 2019-12-01 20:35:49

The rational=False flag was introduced for such cases as this.

>>> q=14.7296138519
>>> solve(exp(-alpha * q**2) - 0.01, alpha, rational=False)
[0.0212257459123917]

(The explanation is given in the issue cited above.)

Rolling back from version 0.7.2 to 0.7.1 solved this problem.

easy_install sympy==0.7.1

I've reported this as a bug to sympy's google code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!