Evaluate binomial coefficients: Difference between revisions
Content added Content deleted
m (→{{header|Lua}}: handle overflow by switching to double approximate) |
m (→{{header|Lua}}: not save some out of normal(?) inputs bound case) |
||
Line 1,189:
local ans = self[hash]
if not ans then
if n<
return 0 -- not save
ans = 1
▲ elseif k>n then
else
if 2*k > n then
|