如何从中正确调用erf函数西皮。特别吗?

2024-09-24 22:24:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在python中使用erf函数,但遇到错误:

  File "java.py", line 40, in <module>
    getQ(x) 
  File "java.py", line 13, in getQ
    q = math.log(1.0- erf.erf(math.abs(x)/SQRT2))
AttributeError: 'numpy.ufunc' object has no attribute 'erf'

这是我的代码:

^{pr2}$

有没有一个我应该实现的特定模块?在


Tags: 函数inpylog错误linemathabs