python中的逆ERF函数的命令 [英] command for inverse ERF function in python

查看:433
本文介绍了python中的逆ERF函数的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在python中计算函数的反误差函数(erf)的命令是什么,需要导入哪个模块?

What is the command to calculate Inverse Error function (erf) of a function in a python and which module is needed to import?

推荐答案

对于 inverse 错误函数,scipy.special具有erfinv:

http://docs.scipy.org /doc/scipy/reference/generation/scipy.special.erfinv.html#scipy.special.erfinv

In [4]: from scipy.special import erfinv

In [5]: erfinv(1)
Out[5]: inf

In [6]: erfinv(0.4)
Out[6]: 0.37080715859355784

这篇关于python中的逆ERF函数的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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