next up previous contents index
Next: random Up: Ring Previous: coerce   Contents   Index


factorial


\begin{usage}
factorial(a, s, n)
\end{usage}


Signature


\begin{params}
{\em a, s} & \% & Elements of the ring\\
{\em n} & \htmlref{\texttt{MachineInteger}}{MachineInteger} & A nonnegative integer\\\end{params}

\begin{retval}
Returns the generalized factorial $\prod_{i=0}^{n-1} (a + i s)$.
\end{retval}


Manuel Bronstein 2000-12-13