# \(\text{Maximum}\)¶

You can use the \(\text{Maximum}\) function to find the maximum value across a collection of scalar values.

You can use the `\max`

backslash command to insert this function.

The following variants of this function are available:

\(\text{real } \text{Maximum} \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 locate the maximum values within those embedded
iterable values. Note that only scalar values are examined a complex value
with an imaginary part will cause a value of `NaN`

to be returned.

Below is a basic example using the \(Maximum\) function.

\[a = \text{Maximum} \left ( 4, 6, 5 \right )\]

\[\text{a = 6}\]

\[A = { 3, 5, 7, 4 } \;\;\;\; B = { 6, 2, 5 }\]

\[b = \text{Maximum} \left ( A, B \right )\]

\[\text{b = 7}\]

\[C = \left ( A, B \right )\]

\[c = \text{Maximum } C\]

\[\text{c = 7}\]