Evaluate binomial coefficients: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|Sidef}}: including "bigint" is no longer required) |
||
Line 1,820: | Line 1,820: | ||
=={{header|Sidef}}== |
=={{header|Sidef}}== |
||
Straightforward translation of the formula: |
Straightforward translation of the formula: |
||
<lang ruby> |
<lang ruby>func binomial(n,k) { |
||
⚫ | |||
func binomial(n,k) { |
|||
⚫ | |||
} |
} |
||
say binomial(400, 200) |
say binomial(400, 200)</lang> |
||
Alternatively, by using the ''Number.nok()'' method: |
Alternatively, by using the ''Number.nok()'' method: |
||
<lang ruby>say 400.nok(200) |
<lang ruby>say 400.nok(200)</lang> |
||
=={{header|Tcl}}== |
=={{header|Tcl}}== |