RU beehive logo ITEC dept promo banner
ITEC 380
2009fall
ibarland

homeinfolecturesexamshwsarchive

lect05a

Review / discuss: - factoring out ; return a root of ax^2+bx+c, where sgn="+" means pos root, ; and sgn being "-" means subtract the radical ; (define (root2 a b c sgn) ...) [I forgot to mention `local`/`let*`] Options: - what if sgn were an int, instead of a string? - could sgn be a function? In fact, calling big-bang, we were passing functions! Write function for product of list.
lists:

; A function to handle a list.
; What does the design recipe give us, as a template?


; We'll write:
;   sum : list-of-number -> 
;   length : list-of-number -> 
;   square-each : list-of-number -> 
;
;   total-book-time : list-of-book -> 
;   vandalize* : list-of-book -> 


a grammar for cond
a grammar for scheme

homeinfolecturesexamshwsarchive


©2009, Ian Barland, Radford University
Last modified 2009.Sep.30 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme