Writing minimum equation

166 Views Asked by At

How can i write minimum number of a series as an equation?

min(4, 2) = 2
or
min([5, 1, 8, 6]) = 1

Like the following one

∑Xi
1

There are 1 best solutions below

1
On BEST ANSWER

For two arguments:

$$\min\{x,y\}=\frac{x+y-|x-y|}{2}$$

For more arguments you recurse:

$$ \min\{x,y,z\}= $$ $$ \min\{\min\{x,y\},z\}= $$ $$ \frac{\min\{x,y\}+z-|\min\{x,y\}-z|}{2}= $$ $$ \frac{\frac{x+y-|x-y|}{2}+z-\left|\frac{x+y-|x-y|}{2}-z\right|}{2}. $$