Partially implemented standard C's math.h