Prove for fun -
and what should we prove?
The maximum of two numbers x and y is denoted by max (x,y). The max (-1, 3) = max (3,3) = 3 and max (-1, -3) = max(-3, -1) = -1. The minimum of x and y is denoted b min (x,y). Prove that: \[\max(x,y) = \frac{ x+y+|y-x| }{ 2 },\] \[mix (x,y) = \frac{ x+y-|y-x| }{ 2 }.\]
typo, it's min not mix LOL
if y>x then |y-x| =(y-x) so max(x,y)=y you can easily prove that if x>y then |y-x|=(x-y) max(x,y) = x you can prove that This Sucks!
@nincompoop min is also same.
are you sure that's the way to prove it?
Is there a problem with this proof?
\[\frac{x+y+|y-x|}{2}=\cases{\frac{x+y+(y-x)}{2}\qquad, y>x\\\frac{x+y+(x-y)}{2}\qquad ,x>y}\\=\cases{y\qquad ,y>x\\x\qquad ,x>y}\]
max(x,y) = (x+y +|y| - |x|)/2 -> (x+y +y-x)/2 =x and (x+y-y+x)/2 = y
max x if x>y and max y if y>x
thanks guys
@nin I think |y-x| is not eual to |y|-|x|
it's the same. I read that recently LOL
spivak calculus 4th edition
|5-(-3)| is not |5|-|-3|
|5 -(-3)| = |5+3| = |5| + |3|
|dw:1378730644761:dw|
Join our real-time social learning platform and learn together with your friends!