Equations and formulas rearrangement