Skip to main content

Factorial

Returns the factorial of a number.

Syntax

Integer!
factorial(Integer, Integer)

Description

Given an integer n in the interval [1,65535], returns the factorial, usually denoted by n!, defined as the product of all integers between 1 and nn: n!=1·2·3(n-1)·n. By convention, 0!=1.

combinatorics.factorial1.calc.png

Given two integers nn and k, returns the following computation: n·(n-k)·(n-2k)a, with 1a<k

combinatorics.factorial2.calc.png