# $$\text{Median}$$¶

You can use the $$\text{Median}$$ function to fine the median value across a collection of scalar values.

You can use the \median backslash command to insert this function.

The following variants of this function are available:

• $$\text{real } \text{Median} \left ( \ldots \right )$$

You can supply a list containing single values, sets, tuples, and matrices. If the supplied sets and tuples contain other sets and tuples, then this function will recursively traverse the supplied data structures to calculate the median value.

Below is a basic example using the $$Median$$ function.

$A _ i \in \mathbb{R} \;\;\; \forall \; i \text{ over } 1, \ldots, 20 \text{ : } A _ i = 1.1 ^ i$
$m = \text{Median } A \;\;\;\; \text{m = 2.7234295831050023828}$
$B = \left \lbrace 0.1, 0.11, \ldots, 0.2 \right \rbrace$
$C = \left ( A, B \right )$
$n = \text{Median } C \;\;\;\; \text{n = 1.61051}$