Added method for comparing equations. With tests.