Today's book club

4 views
Skip to first unread message

reborgml

unread,
Feb 28, 2013, 5:18:09 AM2/28/13
to sic...@googlegroups.com
Hello SICP-ers

we could meet today as usual, 12:30-13:30, to discuss last assignments and exercises. If we are a small group (that happened last time) we could also go for some wild TDD hacking on top of 1.18-1.19 with our favourite language. This time ADA LOVELACE! No kitchen.

Cheers
Renzo

Anthony Green

unread,
Feb 28, 2013, 8:52:23 AM2/28/13
to reborgml, sic...@googlegroups.com
Here's Renzo and my stab at 1.17 from today

(define (double n) (* 2 n))
(define (halve n) (/ n 2))

(define (prod a b)
(if (= b 1) 0
(+ (double a) (prod a (halve b)))
)
)


Anthony Green
Media Playout
BBC Future Media


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

Reply all
Reply to author
Forward
0 new messages