[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error function erf(z) with complex z



On Wed, Sep 07, 2005 at 11:08:02AM +0200, Thomas Weber wrote:
> Hi, 
> 
> I need to calculate erf(z) for complex variables z. Is there any library
> in Debian that lets me do this (preferably C)? According to the man page
> of cerf(3), it should go into glibc, but it doesn't seem to be there
> right now.

You can do it in Python using the python-scipy Debian package:

>>> from scipy.special import erf
>>> erf(2+3j)
(-20.829461428577808+8.6873182710560588j) 

In C, I'd look into libgsl0 which provides complex number routines and
special functions.

-- 
Alexandre Fayolle                              LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

Attachment: signature.asc
Description: Digital signature


Reply to: