Evaluate binomial coefficients: Difference between revisions
Content added Content deleted
m (→{{header|Smalltalk}}: typo) |
(add Fermat) |
||
Line 846: | Line 846: | ||
2dup 1 + [a,b] product -rot - 1 [a,b] product / ; |
2dup 1 + [a,b] product -rot - 1 [a,b] product / ; |
||
</lang> |
</lang> |
||
=={{header|Fermat}}== |
|||
The binomial function is built in. |
|||
<lang fermat>Bin(5,3)</lang> |
|||
{{out}}<pre>10</pre> |
|||
=={{header|Forth}}== |
=={{header|Forth}}== |