1.0.1 • Published 9 years ago
ackermann v1.0.1
ackermann 
The Ackermann function. Only for theoretical interest in non primitive recursion. Otherwise completely useless and will kill your program. For more background check out this Computerphile episode with Professor Brailsford.
Usage
const A = require('ackermann')
console.log(A(3, 4)) // -> 125For larger values of m or n you will run into RangeError: Maximum call stack size exceeded so you need to tell v8 to use a larger stack size. This is done by setting the --stack_size v8 argument, which is specified in kB.
node --stack_size=100000 program.jsLicense
MIT