scipy.special.erf_zeros¶
-
scipy.special.
erf_zeros
(nt)[source]¶ Compute the first nt zero in the first quadrant, ordered by absolute value.
Zeros in the other quadrants can be obtained by using the symmetries erf(-z) = erf(z) and erf(conj(z)) = conj(erf(z)).
- Parameters
- ntint
The number of zeros to compute
- Returns
- The locations of the zeros of erfndarray (complex)
Complex values at which zeros of erf(z)
References
- 1
Zhang, Shanjie and Jin, Jianming. “Computation of Special Functions”, John Wiley and Sons, 1996. https://people.sc.fsu.edu/~jburkardt/f_src/special_functions/special_functions.html
Examples
>>> from scipy import special >>> special.erf_zeros(1) array([1.45061616+1.880943j])
Check that erf is (close to) zero for the value returned by erf_zeros
>>> special.erf(special.erf_zeros(1)) array([4.95159469e-14-1.16407394e-16j])