Senoc@tg says to YSITD s = 0 origX = x for(; t ==0; t--) tmp = y((x + r*x) / t) s += tmp x = x - tmp s += x x = x - x