--- ray/doc/man/man1/rcalc.1 2016/03/24 18:48:28 1.12 +++ ray/doc/man/man1/rcalc.1 2019/07/20 00:57:43 1.15 @@ -1,4 +1,4 @@ -.\" RCSid "$Id: rcalc.1,v 1.12 2016/03/24 18:48:28 greg Exp $" +.\" RCSid "$Id: rcalc.1,v 1.15 2019/07/20 00:57:43 greg Exp $" .TH RCALC 1 4/6/99 RADIANCE .SH NAME rcalc - record calculator @@ -255,7 +255,7 @@ are evaluated. This provides a convenient method for avoiding inappropriate calculations. The following library of pre-defined functions and variables is provided: .TP 10n -.BR \$N +.BR $N Return the value for input column .I N. If an input format is given, using a channel number generates an error. @@ -285,6 +285,12 @@ is zero, the number of available arguments is returned .BR "rand(x)" compute a random number between 0 and 1 based on x. .TP +.BR "min(a1, a2, ..)" +return the minimum value from a list of arguments. +.TP +.BR "max(a1, a2, ..)" +return the maximum value from a list of arguments. +.TP .BR "floor(x)" return largest integer not greater than x. .TP @@ -324,7 +330,7 @@ inverse tangent of y/x (range \-pi to pi). To print the square root of column two in column one, and column one times column three in column two: .IP "" .2i -rcalc \-e '$1=sqrt($2);$2=$1*$3' inputfile > outputfile +rcalc -e '$1=sqrt($2);$2=$1*$3' inputfile > outputfile .SH ENVIRONMENT RAYPATH the directories to check for auxiliary files. .SH AUTHOR @@ -336,4 +342,5 @@ options, not in definitions. .PP Tabs count as single spaces inside fields. .SH "SEE ALSO" -cnt(1), ev(1), getinfo(1), icalc(1), rcollate(1), rlam(1), tabfunc(1), total(1) +cnt(1), ev(1), getinfo(1), icalc(1), rcollate(1), rlam(1), +rsplit(1), tabfunc(1), total(1)