Update math format