# max [*Relation*]

## Purpose

The **max** relation is an aggregation operator that finds the largest of a set of numbers.

## Syntax

**max** *setOfNumbers number*

## Domain

The *setOfNumbers* argument is a list of integer and/or real numbers.

## Range

The *number* argument is the largest member of *setOfNumbers*.

## Examples

(ask (max '(3 5 4) 5)) ==> T
(tellm (:about Joe (:filled-by friend Fred Sue))
(age Fred 30) (age Sue 40))
(retrieve ?x (max (age (friend Joe)) ?x)) ==> (40)

## See Also

Last modified: Jun 1 1995