update math library