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 nLaTeXn: n!=1·2·3(n-1)·n. By convention, 0!=1.

combinatorics.factorial1.calc.png

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

combinatorics.factorial2.calc.png