是否有适用于Python的erf()易于实现的实现? [英] Is there an easily available implementation of erf() for Python?

查看:123
本文介绍了是否有适用于Python的erf()易于实现的实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以自己执行错误功能erf,但我不愿意.是否有一个没有外部依赖关系的python软件包,其中包含此函数的实现?我已经找到了,但这似乎是一些更大的软件包的一部分(不是甚至清楚哪一个!).

I can implement the error function, erf, myself, but I'd prefer not to. Is there a python package with no external dependencies that contains an implementation of this function? I have found this but this seems to be part of some much larger package (and it's not even clear which one!).

推荐答案

自v.2.7起.标准的数学模块包含 erf 函数.这应该是最简单的方法.

Since v.2.7. the standard math module contains erf function. This should be the easiest way.

http://docs.python.org/2/library/math.html#math .erf

这篇关于是否有适用于Python的erf()易于实现的实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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