--- ray/doc/man/man1/icalc.1 2007/09/04 17:36:40 1.2 +++ ray/doc/man/man1/icalc.1 2022/03/11 22:50:13 1.5 @@ -1,4 +1,4 @@ -.\" RCSid "$Id: icalc.1,v 1.2 2007/09/04 17:36:40 greg Exp $" +.\" RCSid "$Id: icalc.1,v 1.5 2022/03/11 22:50:13 greg Exp $" .TH ICALC 1 2/3/95 RADIANCE .SH NAME icalc - interactive calculator @@ -13,7 +13,7 @@ is a algebraic calculator designed primarily for interactive use. Each formula definition .I file -is read and compiled. +is read and compiled from the RADIANCE library where it is found. The standard input is then read, expressions are evaluated and results are sent to the standard output. If a newline is escaped using a backslash, input is continued @@ -88,8 +88,8 @@ The following library of predefined functions and vari .BR PI the ratio of a circle's circumference to its diameter. .TP -.BR "if(cond, then, else)" -if cond is greater than zero, +.BR "if(test, then, else)" +if test is greater than zero, then is evaluated, otherwise else is evaluated. This function is necessary for recursive definitions. .TP @@ -103,6 +103,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 @@ -129,6 +135,8 @@ inverse trigonometric functions. .TP .BR "atan2(y, x)" inverse tangent of y/x (range \-pi to pi). +.SH ENVIRONMENT +RAYPATH the directories to check for auxiliary files. .SH AUTHOR Greg Ward .SH "SEE ALSO"