[SciPy-User] Voigt function?

Pauli Virtanen pav at iki.fi
Sun Jan 30 07:56:15 EST 2011


On Sun, 30 Jan 2011 12:33:18 +0100, Thøger Emil Juul Thorsen wrote:
> I was wondering if there was any scipy Voigt profile function out there,
> similar to the one that exists for IDL which takes in the values of A
> and U...?

Wikipedia tells that the Voigt profile & functions are related to the 
complex error function w(z) = exp(-z^2)(1 - erf(-i z)). Scipy has an 
implementation for erf() that supports complex values.

However, be sure to use Scipy >= 0.8.0, as the erf() implementation in 
earlier versions had bugs that made results from erf() inaccurate in 
parts of the complex plane.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list