scipy.special.dawsn — SciPy v1.15.2 Manual (original) (raw)

scipy.special.dawsn(x, out=None) = <ufunc 'dawsn'>#

Dawson’s integral.

Computes:

exp(-x2) * integral(exp(t2), t=0..x).

Parameters:

xarray_like

Function parameter.

outndarray, optional

Optional output array for the function values

Returns:

yscalar or ndarray

Value of the integral.

References

Examples

import numpy as np from scipy import special import matplotlib.pyplot as plt x = np.linspace(-15, 15, num=1000) plt.plot(x, special.dawsn(x)) plt.xlabel('$x$') plt.ylabel('$dawsn(x)$') plt.show()

../../_images/scipy-special-dawsn-1.png