Call ans function after equals operator

Changed the end of the equals function to call the ans function. This
makes performing several calculations in a row easier.