Floating-point glitches with the math module. Bug? Or am I missing something?

Robert Kern rkern at ucsd.edu
Tue Sep 21 05:30:00 CEST 2004

John Roth wrote:


> As Jeff points out, Python is at the mercy of the platform's
> C library - it does not have it's own numerical computation
> library. It simply wraps the C library functions.
> You might want to look at one of the math packages.
> SciPy comes highly recommended, it might do what
> you need.

SciPy does wrap the cephes library which has (presumably better) inverse 
trig functions, but does not, unfortunately, wrap those particular 
functions since Numeric provides them. Numeric just wraps the C library, 

Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the Python-list mailing list