gmath library