Anonymous user
Evaluate binomial coefficients: Difference between revisions
m
added whitespace before the TOC (table of contents), shown the formula with a bigger font to make it easier to read the italics.
m (added whitespace before the TOC (table of contents), shown the formula with a bigger font to make it easier to read the italics.) |
|||
Line 2:
This programming task, is to calculate ANY binomial coefficient.
However, it has to be able to output <big><big><math> \binom{5}{3} </math></big></big>, which is '''10'''.
This formula is recommended:
<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>
'''See Also:'''
Line 11 ⟶ 14:
* [[Pascal's triangle]]
{{Template:Combinations and permutations}}
<br>
=={{header|360 Assembly}}==
|