CSC108H1 Lecture Notes - Lecture 1: Memory Address, Exponentiation, Eval

152 views4 pages
22 Sep 2017
School
Course
yifanyang and 39659 others unlocked
CSC108H1 Full Course Notes
21
CSC108H1 Full Course Notes
Verified Note
21 documents

Document Summary

#comment (use for explanation) i. e. exponents (x**y) give z. but division (x/y) gives z . 0. F l o a t: floating point number (i. e 2. 0) 0. 666666666666 but python has a memory limit and cannot give all the repeating digits, hence called floating point division with some imprecision (i. e. 7/3=2. 33333 5)) I n t e g e r d i v i s i o n: evaluation gives an end as opposed to a float (i. e. 4//2= 2 and 2//3 =0 ) M o d : to get . Computer has a memory storing long lists of data locations, which are labelled with a number (i. e. x201) called . Negation; add a - (subtraction sign) in front of number. Computers keep track of all the associated values of each memory address. do this using variables. I. e. find area of a triangle (base * height) A contains memory address x1 and b contains memory address x5.

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