ackermann

1.0.1 • Public • Published

ackermann Build Status

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)) // -> 125

For 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.js

License

MIT

Package Sidebar

Install

npm i ackermann

Weekly Downloads

22

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ralphtheninja