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

From: Stephen Chang (stchang at ccs.neu.edu)
Date: Tue Jan 4 14:32:37 EST 2011

I get results similar to Carl.

Welcome to DrRacket, version [3m].
Language: Intermediate Student.
> (equal? (sum (g-series #i1000)) (accu-sum (g-series #i1000)))
> (equal? (* 10e15 (sum (g-series #i1000))) (* 10e15 (accu-sum (g-series #i1000))))

Luke, can you post the output you get?

On Tue, Jan 4, 2011 at 10:57 AM, Carl Eastlund <cce at ccs.neu.edu> wrote:
> 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.
> --Carl
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.