-2

I was wondering if there are formulas such as min$(a,b)=\displaystyle\frac{a+b-|a-b|}{2}$, etc. but for three numbers (a,b,c).

furfur
  • 598

1 Answers1

2

hint

$$\min (a,b,c)=\min (\min (a,b ),c) $$

  • 1
    I remember that min(a,b,c) ≤ (a+b+c) / 3, which helped me solve the problem. Anyway, thanks for your formula! – furfur Aug 09 '17 at 16:08
  • Why stop there, Salhamam? $\min(a, b, c) = \min(a,\min(b, c)),$ as well. You never appeal to associativity. $\min(a, b, c) = \min(b, \min(a, c))$, acknowledging the the "minimum operator" is commutative as well as associative. – amWhy Aug 09 '17 at 17:51
  • @amWhy not salhamam but salahamam. – hamam_Abdallah Aug 09 '17 at 18:07
  • Oops! Apologies, @Salahamam . The correct spelling is what I intended to write, but I see my fingers and/or my keyboard foiled that intention! :) – amWhy Aug 09 '17 at 18:47