What is the command to calculate Inverse Error function (erf) of a function in a python and which module is needed to import?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With