CSC104H1 Lecture 1: Lecture Evaluation-Steps
Document Summary
; the order of evaluation is very uniform and predictable in isl: ; evaluate the inner expressions before the out expressions. ; outer functions know nothing about how the inner argument expressions produce their results, ; and the inner expressions know nothing about what will happen to their results. (/ (+ 4 5) (+ 1 2)) (/ 9 (+ 1 2)) (/ 9 3) ; click on the stepper button to see the evaluation of the above expression. ; a new window appears: click step to see one step happen. ; notice that each intermediate step is a valid expression, and would produce the same result. ; on quizzes and tests we will often ask you to show the intermediate steps. ; here is another example from an expression we made for the vanishing leprechaun example: (- (* 450 (/ 2 5)) ; don"t worry if you have trouble multiplying 405 by 2/5 : test questions will use simpler numbers.