Purpose
Get the maximum
value of a list of integers or reals.
Synopsis
function maxlist(i1:integer, i2:integer[, i3:integer...]):integer
function maxlist(r1:real, r2:real[, r3:real...]):real
Arguments
i1,i2,...
|
List of integer numbers
|
r1,r2,...
|
List of real numbers
|
Return value
Largest value in the given list.
Example
In the following r is assigned the value 7 by maxlist:
r:= maxlist(-1, 4.5, 2, 7, -0.3)
Further information
The returned type corresponds to the type of the
input.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.