Pike v8.1 release 6

Method Math.choose()


Method choose

int choose(int n, int k)

Description

Calculate the binomial coefficient n choose k.

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