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