CoCoA:Fact

From ApCoCoAWiki

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>