Equation simplification and standard form