Added other functions to mathlib.c.