Singular

Home Online Manual
Top
Back: deleteSublist
Forward: fibonacci
FastBack: compregb_lib
FastForward: inout_lib
Up: general_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.3.6 factorial

Procedure from library general.lib (see general_lib).

Usage:
factorial(n); n integer

Return:
factorial(n): n! of type bigint.

Example:
 
LIB "general.lib";
factorial(37);"";                 //37! (as long integer)
See also: prime.