EECS 111 Chapter 1: EECS TEXTBOOK NOTES

29 views2 pages

Document Summary

Four forms of atomic data of bsl: numbers, strings, images and booleans. When you"re defining constants you have to do (define name (expression)) When you"re defining expressions, you have to do (define (function-name variable variable) expression) Note if this expression contains some kind of operation, you need a parenthesis. I. e, note the difference between (define (addition x y) x) -> (addition 4 3) = 4 (define (addition x y) (+ x y)) -> (addition 4 3) = 7. For example: (define (ff x) (* x 10)) (ff (+ 1 1) First, dr. racket evaluates (+ 1 1) as 2. Next, dr. racket replaces all the xs in (* x 10) with the number 2. Next, dr. racket evaluates (* 2 10) = 20: world programs: Describes how a program connects with a small segment of the world. It is a description of a small world: its initial state, how states are transformed, and how states are rendered (big-bang state-expr clause.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents