Update math.