[SciPy-user] complex error function in scipy.special
morovia at rediffmail.com
Fri Mar 3 12:40:10 CST 2006
Thanks for the replies.
wofz(z)is the one I was looking for.
On Fri, 03 Mar 2006 Arnd Baecker wrote :
>On Fri, 3 Mar 2006, morovia wrote:
> > Hello,
> > I would like to know whether complex error function which can accept complex argument is implemented in scipy.special.
> > w(z) = i/pi*int(exp(-t**2)/(z-t))dt limits: -Inf to Inf
> > where z is complex.
>What is implemented is this one:
>In : import scipy.special
>In : scipy.special.erf?
>String Form: <ufunc 'erf'>
> y = erf(x) y=erf(z) returns the error function of complex argument
> as 2/sqrt(pi)*integral(exp(-t**2),t=0..z)
>which is related to the above w(z), see
>Abramowitz/Stegun, 7.1.3 and 7.1.4.:
>However, I am not sure if using these relations is the best way.
>Wait - there is also
>In : scipy.special.wofz?
>String Form: <ufunc 'wofz'>
> y = wofz(x) y=wofz(z) returns the value of the fadeeva function for
> z: exp(-z**2)*erfc(-i*z)
>So this looks like the one you are looking for.
>(as usual: better compare the results for some known values).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user