CoCoA:Fact

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Fact

factorial function

Description

This function returns N factorial.

Example

  Fact(5);
120
-------------------------------
  Fact(100);
9332621544394415268169923885626670049071596826438162146859
2963895217599993229915608941463976156518286253697920827223
758251185210916864000000000000000000000000
-------------------------------

Syntax

Fact(N:INT):INT

where N is a non-negative integer.

Bin

   <type>integer</type>