[plt-scheme] htdp section 17.7
Actually I do have a query on how to represent number 5 .
(define (k w) (* (h w) (i w)))
Is the correct representation of (* (h w) (i w)) derived by substituting (h
w) with a representation of its body (which is defined by number 3 below?
----Original Message Follows----
From: "wooks ." <wookiz at hotmail.com>
To: plt-scheme at list.cs.brown.edu
Subject: Re: [plt-scheme] htdp section 17.7
Date: Fri, 07 Jul 2006 02:24:10 +0100
I did mean 3 and 5 as below from 17.7.2 but I have belatedly realised that I
interpreted the question wrongly so no harm done.
PS - Re the 2 hours max - I haven't started on the problem as I have been
reading ahead on Intermezzo 3 . I will tell you how long it takes me.
Translate the following definitions into Scheme values:
1.
(define (f x) (+ 3 x))
2.
(define (g x) (* 3 x))
3.
(define (h u) (f (* 2 u)))
4.
(define (i v) (+ (* v v) (* v v)))
5.
(define (k w) (* (h w) (i w)))
----Original Message Follows----
From: Matthias Felleisen <matthias at ccs.neu.edu>
To: Chris Warrington on the PLT Scheme List <plt-scheme at list.cs.brown.edu>
Subject: Re: [plt-scheme] htdp section 17.7
Date: Thu, 6 Jul 2006 19:08:24 -0400
Quite possible. I'll find out. -- Matthias
On Jul 6, 2006, at 6:21 PM, Chris Warrington wrote:
>
>Matthias Felleisen @ 2006-7-06 2:12:38 PM
>"[plt-scheme] htdp section 17.7" <mid:356D9226-1E15-410D-
>B023-47CB0DCCA9C3 at ccs.neu.edu>
>
>>>I ask with particular reference to problems 3 and 5 which seem to
>>>require a null parameter and a null expression respectively.
>
>>Huh?
>
>Does he, perhaps, mean free variables?
>
>--
>Chris Warrington <chrisw at rice.edu>
>
>"Always be wary of any helpful item that weighs less than its
>operating manual."
>-Terry Pratchett_________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
_________________________________________________
For list-related administrative tasks:
http://list.cs.brown.edu/mailman/listinfo/plt-scheme
_________________________________________________
For list-related administrative tasks:
http://list.cs.brown.edu/mailman/listinfo/plt-scheme