UNPKG

@decidables/discountable-math

Version:

discountable-math: Equations for calculating Hyperbolic Temporal Discounting

3 lines (2 loc) 444 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).discountableMath=t()}(this,(function(){"use strict";return class{static k={DEFAULT:.05,MIN:0,MAX:100,STEP:.001,JUMP:.01};static adk2v(e,t,n){return e/(1+n*t)}static adv2k(e,t,n){return(e-n)/(n*t)}}})); //# sourceMappingURL=discountableMath.umd.min.js.map