[Numpy-discussion] Internal Math Library of Numpy

Pauli Virtanen pav+sp@iki...
Thu Jul 30 14:56:20 CDT 2009


On 2009-07-30, Nanime Puloski <npuloski@gmail.com> wrote:
> Does Numpy use Python's standard math library when calculating
> elementary functions such as exp(x) and acos(x)?

No.

> Also, what is the internal library of Numpy and Python's 
> standard math library?

The standard C library, plus custom implementations for functions 
that are missing in it.

> Are they platform independent?

In practice, yes. There are some possible obscure corner cases 
currently in complex-valued inf/nan handling, though.

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list