update normalizeEquation() to deal with abs & sign