CS 227 lecture -*- Outline -*-
* numbers and symbols (1.3)
numbers, names (unbound), define, symbols (quote and ')
give examples of
integers, negative numbers, rationals, floats,
scientific notation
define, eval of names, errors from undefined
symbols, quote and ', suppression of eval
(ask for summary)
** expressions
use examples of subtraction and division, mult, addition
2-3 4/5 2-(4/5) 2-'c
(/ 17 24) vs (/ 17.0 24)
summarize (operator, operands)
translation both ways
if time do exercises of translation: have them
pass to neighbor
-------------
1. translate to Scheme:
((3 * y) + 1) / 2
2. Translate to math notation:
(/ (+ (* a d) (- d e)) 9.7)
-------------