Rev Language Reference


max - Maximum of a set of numbers

Finds the maximum of a vector of numbers.

Usage

max(Real[] x)

Arguments

x : Real[] (pass by const reference)
A vector/matrix of numbers.

Return Type

Example

a = v(1,2,3,4,5)
max(a)
# this will print 5

See Also