




















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!





















Never implemented Develped by Zuse (German Scientist) Plankalkül means program calculus Simplest data type (single bit) Includes arrays and records
The computers were slow, unreliable, expensive and having small memories. No high level or assembly lang. What was wrong with using machine code? a. Poor readability b. Poor modifiability c. Expression coding was tedious d. Machine deficienciesno indexing or fl. pt. Short code – 1949 – BINAC computer Included the coded versions of math. exp. The codes were byte – pair values Speedcoding; 1954 - IBM 701
**- Pseudo ops for arithmetic and math. functions
**1. Syntax should be Close to mathematical notation
Concept of type was formalized Names could have any length Arrays could have any number of subscripts Parameters were separated by mode (in & out) Compound statements ( begin ... End ) Semicolon as a statement separator Assignment operator was := (Var := exp ) if had an else-if clause
Declarative Languages
The design of functional programming is based on mathematical functions (mapping) A lambda (λ) expression specifies the parameters and the mapping of a function in the following form
(^) Ex. ( λ(X) xxx )(3)** = 27= 27 Functional Forms : A Functional Form is one that either takes functions as parameters or
(^) Ex. Let f(x) = xxx** , g(x) = x+3 then f◦g = (x+3)(x+3)(x+3)**
(^) Ex. Let f(x)=xxx, g(x) = x+3** then [[ f,g] (4)=(64,7)
(^) Ex. Let h(x) = xxx** then α(h(3,2,4)) = ( 27,8,64)
(^) For example: grandfather(Prakash, Suraj) if father(Prakash, Anand), father(Anand, Suraj) expresses that the grandfather relation holds between the values Prakash and Suraj, if the father relation holds between Prakash and Anand, and if also the