View Single Post
Old 2018-02-27, 15:55   #19
JM Montolio A
 
Feb 2018

25×3 Posts
Default

pseudocode tserie
init vars:
M=0, e=eStart, D=1, PD=1.
begin
loop
Use the step equation to get g, e'

M =M+g
PD =PD*(2^g)
Si (e')!=(eEnd), D=D+PD
e =e'

Exit loop when "e=eEnd";
loopend

return values M,D.
end


For the M() function, the step eq. is n+e = (2^g)*(e')
eStart=1
eEnd=1
JM Montolio A is offline   Reply With Quote