Added two functions in math.h