min3
Min3 refers to the minimum of three values. In mathematics and computer science, min3 denotes the smallest element among a, b, and c. It can be written as min(a,b,c) and is classically defined as min(a,b,c) = min(min(a,b), c), since the minimum over a finite set can be obtained by successive comparisons.
As a function, min3 is commutative in its inputs and associative in the sense that the order
Examples include: min3(5, 2, 9) = 2; min3(-7, 3, -1) = -7; min3(4, 4, 2) = 2.
In programming contexts, min3 is often implemented as a three-argument variant of the two-argument min function,
Variants and related concepts include the minimum of more than three numbers and the median of three,
See also: minimum, min, median of three, comparison operation.