Another short probability kata. This time we'll do some VIM+XUnit hacking on a Win7 box. Let's see how it turns out. n*p(1) = n : red
n*p(1) = n : green
n * p(0) = 0 : red
n * p(0) = 0 : green
p(1).inv = p(0) : red
p(1).inv = p(0) : green
p(0).inv = p(1) : red
p(0).inv = p(1) : green
p(1).com(1) = p(1) : red
p(1).com(1) = p(1) : green
p(1).com(0) = p(0) : red
p(1).com(0) = p(0) : green
p(0).com(1) = p(0) : red
p(0).com(1) = p(0) : green
p(1).e(1) = p(1) : red
p(1).e(1) = p(1) : green
p(1/2).e(1/2) = p(3/4) : red
p(1/2).e(1/2) = p(3/4) : green
touchdown. probability is always a little fun. this time I sticked to the value type proposition and felt ease to implement the implicit cast operator. surely smarter solutions are possible, but i'm fine with the decimal internal presentation as well. VIM feels odd on Win7 boxes though.