Implementing C math library.