Binom function

Fully qualified name: Std.Math.Binom

function Binom(n : Int, k : Int) : Int

Summary

Returns the approximate binomial coefficient of two integers.

Description

Given two integers n and k, returns the binomial coefficient binom(n, k), also known as n-choose-k. Computed approximately.

Input

n

The first of the two integers to compute the binomial coefficient of.

k

The second of the two integers to compute the binomial coefficient of.

Output

The binomial coefficient n-choose-k.