Is there a way to rewrite these two equations into one equation that would work in both scenarios?
If $x > y$, then the equation is: $$z = \frac{x - y}{1 - y}.$$
If $x < y$, then the equation is: $$z = 1 - \frac{y - x}{y}.$$
Is there a way to rewrite these two equations into one equation that would work in both scenarios?
If $x > y$, then the equation is: $$z = \frac{x - y}{1 - y}.$$
If $x < y$, then the equation is: $$z = 1 - \frac{y - x}{y}.$$