gamma approximation : what is module cmath and where is it located ?
nobody at nowhere.com
Thu Jul 30 14:43:29 CEST 2009
On Wed, 29 Jul 2009 23:24:11 -0500, pdlemper wrote:
> The following numerical approximation for Euler's Gamma function
> is found in http://en.wikipedia.org/wiki/Lanczos_approximation
> from cmath import *
> This works in Python 3.0
> But I can't figure out where it gets "cmath". Searching the Python
> directory reveals no more than a test_cmath. The only cmath I can find
> is a header file in another directory turboc++\Borland\include\
> dir(cmath) reveals 23 functions overlapping the 37 functions of
> the math module.
> What is cmath, where did it come from and how does it differ from
> the standard math module ?
If you're looking for the file, it's written in C, so it's typically a
dynamic library, e.g.:
You won't find a cmath.py file.
More information about the Python-list