CS135 Chapter : Module 1 - Introduction to CS 135.docx

90 views1 pages

Document Summary

Functional: based on the computation of new values rather than the transformation of old ones (scheme). Dialect: a subset of a programming language that contains parts of the language (racket = dialect of scheme). Infix notation: (+ 1 3) as opposed to prefix notation 1+3. Mathematical form: f( ) = 2 is defined as (define (f x) (* x x)). Mathematical form: g( , y) =x + y is defined as (define (g x y) (+ x y)). Assuming the two definitions above, (g (g 1 3) (f 2)) equates to 8. Dr. racket processes it in this manner: (g (g 1 3) (f 2)) Note: when a function is run with its parameters such as (g 4 6), both parameters are simultaneously substituted into the function. In the event that a separate constant or function is a part of the function, it is substituted afterwards.

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