CS 105 Lecture Notes - Lecture 5: Normal Order, Operand, Special Functions
CS 105 verified notes
5/8View all
Document Summary
Cs 105 10/12: electronic numerical integrator and calculator (eniac, first electronic computer used for general purposes. Invented by eckert and mauchly at the university of pennsylvania. In an effort to calculate artillery firing tables for the us ar(cid:373)(cid:455)(cid:859)s ballisti(cid:272) esear(cid:272)h. Laboratory: began in 1943, finished in 1946, by the end of its operations in 1956, occupied 1,800 sqft, 20k vacuum tubes, 1. 5k relays, 10k capacitors, 70k resistors, used 200kw, weighed over 30 tons, cost about k. Information is stored in memory locations: a variable is a(cid:374) ide(cid:374)tifier that refere(cid:374)(cid:272)es a lo(cid:272)atio(cid:374) i(cid:374) the (cid:272)o(cid:373)puter(cid:859)s (cid:373)e(cid:373)or(cid:455, variable names are easy ways to reference those locations. It is important to understand the scope in which variables are defined: the locations in code where the variable name is usable, variables are assigned values, typically the result of an expression. In python, literals can also represent text data, called strings.