Blob


1 ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 ;; about the language level of this file in a form that our tools can easily process.
3 #reader(lib "htdp-beginner-reader.ss" "lang")((modname 3.3.6) (read-case-sensitive #t) (teachpacks ((lib "convert.ss" "teachpack" "htdp"))) (htdp-settings #8(#t constructor repeating-decimal #f #t none #f ((lib "convert.ss" "teachpack" "htdp")))))
4 ;; Celsius->Fahrenheit : number -> number
5 ;; Computes the Fahrenheit temperature given the Celsius temperature
7 (define (Celsius->Fahrenheit Celsius)
8 (+ (* 9/5 Celsius) 32))
10 ;; Fahrenheit->Celsius : number -> number
11 ;; Computes the Celsius temperature given the Fahrenheit temperature
13 (define (Fahrenheit->Celsius Fahrenheit)
14 (* 5/9 (- Fahrenheit 32)))
16 ;; I : number -> number
17 ;; to convert a Fahrenheit temperature to Celsius and back
18 (define (I f)
19 (Celsius->Fahrenheit (Fahrenheit->Celsius f)))