Skip to content

Generate binomial coefficients with optional memoization. Works in the browser and node.js.

License

Notifications You must be signed in to change notification settings

pboyer/binomial.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binomial.js

binomial.js is a simple module for creating binomial coefficients. It includes memoization by default.

Usage with memoization:

var n_choose_k = binomial.get(n, k);

Usage without memoization:

var n_choose_k = binomial.get_no_memo(n, k);

About

Generate binomial coefficients with optional memoization. Works in the browser and node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published