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.5) (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 ;; velocity : number number -> number
5 ;; Computes the velocity at time given the acceleration constant g
7 (define (velocity time g)
10 ;; height : number number -> number
11 ;; Consumes the parameters time and g.
12 ;; Computes the height at time t given the velocity and the time by multiplying the two and dividing by two.
14 (define (height time g)
15 (* 0.5 (velocity time g) time))