Jump to content

Bell numbers: Difference between revisions

m
→‎{{header|Sidef}}: minor simplifications
(Added Sidef)
m (→‎{{header|Sidef}}: minor simplifications)
Line 282:
var bell = [1]
 
for k in (n-1)..n)times {
acc.unshift(bell[-1])
acc.accumulate!
Line 330:
func A(n, k) is cached { A(n, k-1) + A(n-1, k-1) }
 
for n in (0..9^10) {
say (0..n -> map{|k| A(n, k) })
}</lang>
2,747

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.