RosettaCodeData/Task/Evaluate-binomial-coefficients/00DESCRIPTION

16 lines
478 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
This programming task, is to calculate ANY binomial coefficient.
2016-12-05 22:15:40 +01:00
However, it has to be able to output &nbsp; <big><big><math>\binom{5}{3}</math></big></big>, &nbsp; which is &nbsp; '''10'''.
2013-04-10 16:57:12 -07:00
This formula is recommended:
2016-12-05 22:15:40 +01:00
<big><big>
:: <math>\binom{n}{k} = \frac{n!}{(n-k)!k!} = \frac{n(n-1)(n-2)\ldots(n-k+1)}{k(k-1)(k-2)\ldots 1}</math>
</big></big>
2013-06-05 21:47:54 +00:00
'''See Also:'''
* [[Combinations and permutations]]
* [[Pascal's triangle]]
{{Template:Combinations and permutations}}
2016-12-05 22:15:40 +01:00
<br>