Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

command for inverse ERF function in python [closed]

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

like image 699
Naitik Mathur Avatar asked Jul 07 '15 10:07

Naitik Mathur


1 Answers

For the inverse error function, scipy.special has erfinv:

http://docs.scipy.org/doc/scipy/reference/generated/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
like image 59
xnx Avatar answered Sep 21 '22 07:09

xnx