Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Math

Method Math.choose()


Method choose

int choose(int n, int k)

Description

Calculate binomial koefficient n choose k .

This is equvivalent to n !/(k !*(n -k )!).