This is proabably a good use of phases. In the early phase you add something like x/(eps+y) and let eps get smaller or 0 in a later phase.