Implement libc.math and test it
authorOndrej Certik <ondrej@certik.cz>
Sat, 4 Dec 2010 02:24:33 +0000 (18:24 -0800)
committerOndrej Certik <ondrej@certik.cz>
Sat, 4 Dec 2010 02:32:47 +0000 (18:32 -0800)
commit63045fd0568a6a815e81c2cdfb28105bfb9e4345
tree8db85b07f776ae56c940f89ff4fcc74b17aa8182
parent16055821b0f43047db4f32f3a16335732b63aa85
Implement libc.math and test it

Basic math.h constants and functions were added. Now when one wants to speedup
the following code::

    from math import sin, cos
    e = sin(5) + cos(6)

one can do::

    from libc.math cimport sin, cos
    e = sin(5) + cos(6)

Not all math.h features are wrapped (yet), but basic functions should work.

Signed-off-by: Ondrej Certik <ondrej@certik.cz>
Cython/Includes/libc/math.pxd [new file with mode: 0644]
tests/compile/libc_math.pyx [new file with mode: 0644]