Define numcases: math cases with equation numbers. Also define subequation numbering. The author is Donald Arseneau.