Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ackermann

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ackermann

The Ackermann function A(m,n)

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 24 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc