We know 2 $\max\{a,b\}=a+b+|a-b|$, is there any similar formular about $\max\{a,b,c\}$? How about $\max\{x_1,x_2,\cdots,x_n\},$ where each $x_i$ is a real number ?
Asked
Active
Viewed 315 times
2
-
Previously: Nice expression for minimum of three variables? Perhaps not a duplicate since you didn't ask for a nice formula. – Feb 05 '14 at 02:55
1 Answers
8
Hint $$\max\{a,b,c\}= \max\{\max\{a,b\},c\}$$
Use the formula for two numbers twice. Similarly
$$\max\{x_1,x_2,\cdots,x_n\}=\max \{ \max\{x_1,x_2,\cdots,x_{n-1}\}, x_n \}$$
which gives a recursive formula..

N. S.
- 132,525