• Ondrej Certik's avatar
    Implement libc.math and test it · 63045fd0
    Ondrej Certik authored
    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: default avatarOndrej Certik <ondrej@certik.cz>
    63045fd0
libc_math.pyx 280 Bytes