User blog comment:Alemagno12/PEGGLog/@comment-25337554-20170510074155

Detailed Processes:

On the May 8th, PEGG is 1 by definition. The variables are X=0.00, Y="E", Z=0.01, K=1000. (by definition)

On the May 9th, since the May 8th DJIA ends with 21012.28, so n=8. Next, X+n^2*Z=0.64, so X becomes 0.64. Next, int(E0.64)=int(10^0.64)=4, so PEGG becomes 4. Since X<=10, nothing else happens on this day. Variables: X=0.64, Y="E", Z=0.01, K=1000