



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































xkcd.com/297/
Computer science is not programming …But we will use programming as a concrete medium in which to explore the nature of computation. "Computer science is no more about computers than astronomy is about telescopes." Edsger Dijkstra (?)
Racket
The Language of Mathematics
The Language of Mathematics We all learned to write in a non-native language called Mathematics, whether we thought about it that way or not.
- Values:^ ,^ ,^ ,^ ,^ … - Expressions: , , , … - Definitions: , , … - Evaluation rules: 0 − 37 3.14159 7 / 8 (6,4) 5 + 3 log 2 ( 2 ⋅ 8 ) 5 9 ( 90 − 32 ) 2 100 − 5 a = 13 π = 3.14159… f ( x ) = x 2 − x − 1 f ( a − 1 ) =?
The Language of Mathematics We all learned to write in a non-native language called Mathematics, whether we thought about it that way or not.
- Values:^ ,^ ,^ ,^ ,^ … - Expressions: , , , … - Definitions: , , … - Evaluation rules: 0 − 37 3.14159 7 / 8 (6,4) 5 + 3 log 2 ( 2 ⋅ 8 ) 5 9 ( 90 − 32 ) 2 100 − 5 a = 13 π = 3.14159… f ( x ) = x 2 − x − 1 f ( a − 1 ) = 131
Built-In Racket Functions
Function Application Syntax Every Racket function application follows the same pattern:
Useful Math Functions
Constants
Constant Definitions