Added numeric evaluation of input fields (a and b)