libc.math implemented #2

Merged
1 commit merged into from Dec 4, 2010

Projects

None yet

2 participants

@certik
Contributor
certik commented Dec 4, 2010

See the commit log for details.

Did I write the test for this properly?

@certik certik 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>
63045fd
@robertwb
Contributor
robertwb commented Dec 4, 2010

Thanks. We usually prefer run tests, but it's not trivial to specify that libm needs to be linked.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment