while (( abs(a-g) > eps ))