How to represent $\max(x, y)$ in terms of absolute?

236 Views Asked by At

We can represent Absolute in terms of Max:

$|x| = \max(x, -x)$

but how to represent $\max(x, y)$ in terms of Absolute

1

There are 1 best solutions below

0
On BEST ANSWER

Here's one way to do it: $$ \max(x,y) = \frac{x+y}{2} + \frac{|x-y|}{2} . $$