Roelof Wobben writes:
> I still don't see what I did wrong.
>
> As far as I understand this I have to read this as follows :
>
> Suppose x=2
>
> (/(-(x 32) 1.8))
Usually this is spaced (/ (- (x 32) 1.8)).
(/ (- (x 32) 1.8) is a procedure call.
The procedure is the value of /.
The sole argument is the value of (- (x 32) 1.8).
(- (x 32) 1.8) is a procedure call.
The procedure is the value of -.
The second argument is the literal 1.8.
The first argument is the value of (x 32).
(x 32) is a procedure call.
But the value of x is not a procedure.
Racket told a funny story to you. The error was not that x is a
variable. The error was that the value of x is not a procedure.
What you want to write is (- x 32).
It is a procedure call, the procedure is the value of -,
the second argument is the literal 32, and the first
argument is the value of the variable x, which is 2.
Calling - with 2 and 32 does give -30.
And you want to call / with two arguments, 2 and 1.8, to get whatever.
Place the parentheses so: (/ (- x 32) 1.8). Should work.