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

89 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+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