



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An introductory overview of computer science, emphasizing the concepts of abstraction, syntax, and semantics. It introduces the racket programming language as a tool for exploring computation. Fundamental programming concepts such as values, expressions, definitions, evaluation rules, function application, and constant definitions. It also explores the concept of scope and the semantics of racket programs through substitution rules. Suitable for university students taking an introductory computer science course.
Typology: Summaries
1 / 59
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