File r37/lisp/csl/html/r37_0090.html artifact 659628bd2b part of check-in dc9552dc80



<A NAME=MAX>

<TITLE>MAX</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>MAX</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
 <P>
<P>
The operator <em>max</em> is an n-ary prefix operator, which returns the largest
 
value in its arguments. 
 <P> <H3> 
syntax: </H3>
<P>
<P>
<em>max</em>(&lt;expression&gt;{,&lt;expression&gt;}*) 
<P>
<P>
<P>
<P>
&lt;expression&gt; must evaluate to a number. <em>max</em> of an empty list 
returns 0. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
max(4,6,10,-1); 

  10 


&lt;&lt;a := 23;b := 2*a;c := 4**2;max(a,b,c)&gt;&gt;;
			 


  46 


max(-5,-10,-a); 

  -5

</TT></PRE><P>

REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]