File r37/lisp/csl/html/r37_0096.html artifact f5c719953e part of check-in a57e59ec0d



<A NAME=PERM>

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



<B>PERM</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
 <P>
<P>
 <P> <H3> 
syntax: </H3>
perm(&lt;expression1&gt;,&lt;expression2&gt;) 
<P>
<P>
<P>
If &lt;expression1&gt; and &lt;expression2&gt; evaluate to positive integers, 
<em>perm</em> returns the number of permutations possible in selecting 
&lt;expression1&gt; objects from &lt;expression2&gt; objects. 
In other cases, an expression in the original operator is returned. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
perm(1,1); 

  1 


perm(3,5); 

  60 


perm(-3,5); 

  PERM(-3,5) 


perm(a,b); 

  PERM(A,B)

</TT></PRE><P>

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