so i set out to write what i thought was a fairly simple probability curve.
i though i needed some trig function, i typed some reference points into a graphing calculator, and started looking for a function that matched...
after a lot of finding nothing that was even close, i found an exact match for all my reference points...
after rewriting it in lua, i finally had it:
`-(2^(-absn)-1)/2*n/absn+0.5`
why is this so complicated...
#programming #gamedev #lua
i though i needed some trig function, i typed some reference points into a graphing calculator, and started looking for a function that matched...
after a lot of finding nothing that was even close, i found an exact match for all my reference points...
after rewriting it in lua, i finally had it:
`-(2^(-absn)-1)/2*n/absn+0.5`
why is this so complicated...
#programming #gamedev #lua