The function FEQ (Format EQuations) is a simple parser designed mainly to resolve adjacent sign conflicts (e.g. ). It does not do any arithmetic.
There are many (at least seemingly) idiosyncratic/outdated constructions in the FEQ routine which have become ingrained in existing problem sets.