[racket] Am I Missing Something? [HtDP 31.3.1]

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Tue Jan 4 10:57:50 EST 2011

On Tue, Jan 4, 2011 at 9:38 AM, Luke Jordan <luke.jordan at gmail.com> wrote:
> All that code came straight out of the text, except that I used if instead
> of cond.  The sum, accu-sum, and g-series defs are all given.  In your

Ah, yes, now I see where the accumulator-based sum is.  Sorry, my mistake.

> results I see a difference.  When I run it at home it's the same.  I can
> even (equal? (sum (listof number)) (accu-sum (listof number))) and get true.

No idea what's going on.  Maybe someone else will have an idea.


Posted on the users mailing list.