Atanherf¶
-
rfbp.atanherf.
atanherf
(x)[source]¶ Compute atanh(erf) for general values of x
Parameters: x (float) – Input variable Returns: atanh(erf(x)) – atanh(erf(x)) for any value of x Return type: float Example
>>> x = 3.14 >>> atanherf(x) 6.157408006068702
>>> from scipy.special import erf >>> import numpy as np >>> np.arctanh(erf(x)) 6.157408006066962
>>> x = 100 >>> atanherf(x) 5002.9353661516125 >>> np.arctanh(erf(x)) inf
Notes
Note
We encourage to use this function since it is faster than a possible pure-Python counterpart and it implements a series of computational tricks to solve possible numerical instability or precision losses.