CSC104H1 Lecture 1: Lecture Evaluation-Steps

40 views2 pages
26 Sep 2016
School
Course

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents