Reformat mathematics.