Update the math lib