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

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


In the future, please do not post complete (or nearly complete)
homework solutions to the list.  Try to find a slightly more indirect
way to ask your question -- we're happy to answer, we just don't want
copy/paste solutions floating around.  For now, though, here are the
results I get with your code:

Welcome to Racket v5.0.99.5.
> (require "31.3.1.rkt")

Those look different to me.  Try subtracting one from the other to see
how different.  Or, show us the results you get if you don't get the
same results.

Carl Eastlund

On Mon, Jan 3, 2011 at 10:48 PM, Luke Jordan <luke.jordan at gmail.com> wrote:
> When I run the plain recursive vs. the accumulator version of sum with
> g-series, I get the same result, which the text says isn't supposed to
> happen.  Code attached.  What am I missing?
> Luke

Posted on the users mailing list.