Re: best cumulative sum




"Alan Isaac" <aisaac0@xxxxxxxxxxx> wrote in message
news:Mzpgf.12794$NN2.4089@xxxxxxxxxxx
> cr[0] = func(cr[0],init)

Ooops. That assumed commutativity.
It shd be:
cr[0] = func(init,cr[0])
or perhaps for clarity
cr[0] = func(init,seq[0])

Alan Isaac


.



Relevant Pages

  • Re: Image
    ... | Tried this by dragging but document was fuzzy and don't know how to ... | clarity of the image. ... Prev by Date: ...
    (microsoft.public.publisher)
  • Re: Not sure about interpretation of this set notation
    ... and k for an element of A. I would change the letters for clarity: ... Assuming division by 2 makes sense, here's another way to express X: ... Prev by Date: ...
    (sci.math)
  • Re: Some more photos ...
    ... but what kind of camera? ... clarity is exceptional. ... Cheryl ... Prev by Date: ...
    (alt.vacation.las-vegas)
  • Re: FTP over TLS
    ... > files over a secure FTP connection? ... Alan Isaac ... Prev by Date: ...
    (comp.lang.python)
  • Re: stripping out lines
    ... for the sake of clarity I'd prefer to write it yr way, ... Tks.. ... Prev by Date: ...
    (comp.lang.tcl)