here a patch concerning the "discrete summation formula" showed in the Dodge-Jerse's book.
I developed the flowchart of page 162 (latest edition).
Unfortunately it doesn't work properly.
Could you please take a look at the following patch? Thanks
(edited by admin - please use copy-compressed when posting patches)