Combin Function

Purpose

Returns the number of combinations of n elements to k-th order without repetition.

Syntax

Combin(n, k)

Description

Combin(n, k) is defined as: Combin(n, k)=n!/((n-k)!*k!)

Example

OpenW # 1

Print Combin(6, 2) // Prints 15

Remarks

When k > n an error is reported.

See Also

Fact(), Variat()

{Created by Sjouke Hamstra; Last updated: 25/09/2014 by James Gaite}