erf_zeros — SciPy v1.15.2 Manual (original) (raw)

scipy.special.

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

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])