Module 1 Flashcards
Integers
All whole natural numbers, negative and zero
NOT FRACTIONS
Real Numbers
All integers and all fractions. Basically all integers and all the numbers that exist between the integers
-Any value you encounter in the real world
-include rational and irrational numbers as well as integers
Rational Numbers
Real numbers that can be represented as a fraction
-Also includes the integer group because 10= 10/1
Irrational Numbers
real numbers that Cannot be represented as a fraction
(the decimal is never repeating so cant be a fraction)
Two main examples:
the square root of 2 and pi
Two common examples of irrational numbers
square root of 2 and pi
exponents
n^k = n multiplied by itself k times
Some common rules:
n^1=n
n^0=1
n^-1=1/n^1 (basically a number to a neg exponent is the inverse ex 2^-2 = 1/2^2 = 1/4
10^pos number = pos number is how many zeros after the one in thenumebr (ex 10^3= 1000)
Which are important when working with computers?
The exponents or powers of 2
Subscripts
-doesnt mean anything in traditional math
-usually just used to distinguish between variables like xsubscript2
-we will use it to distinguish number systems with different bases (later)
Continous Numbers
-Real numbers
-there is a smooth transition between any two values
-think of a line with no breaks in it
-think elevator moving from third and fourth floor, it is smooth and continous with no breaks, smooth transition
examples: time, temperature, distance , mass
Is there an infinite amount of values between any two real values?
Yes! Think of 3 to 4, there is 3.001, 3.000001, 3.0000000001 and so forth. Same with 3 to 3.001, there are infinite amount of values between them
Discrete Values
-Not Continous, jerky movement
-it is the transition between integers (but doesnt have to be integer) because it jumps from 3 to 4 for example because 3.001 is not an integer (rmember integers are whole natural numbers)
-doesnt have to be integer because can be something liek shoe sizes, 7 to 7.5, 7.5 is not an integer but this is dicrete because it jumps
-these are easily countable things, if u can “count on fingers” it is most likely discrete
ex: count people in room, there are 4 then someone walks in, all of a sudden it jumps to 5, it didnt transitionslowly from 4.001, 4.2 etc to 5 because there are neber 4.002 people in the room
For the elevator example for continous; the path the elevator takes is continous, but the buttons on the elevator are discrete because it jumps from 3 to 4, but the path is everything inbetweem
Do discrete values have to be integers?
No, but integers are always discrete
For example: pennys are discrete and they are 1/100
example 2: shoe sizes : 7, 7.5, but no 7.4 so not continuity so discrete but 7.5 is not an integer so yea
Do discrete quantities have to be numbers
No, the date is discrete. April 30 to May 1, it jumps
HOWEVER: Time is continous
Discretization
-Converting (or rounding) a continous quantity to a discrete value
i.e thinking about a continous thing as a dicrete, caring about significant digits and therefore ignoring others
Example: height, you measure urself and u are 167.8 cm, but with a super precise measuring one, u are 167.8172639 cm exactly. Saying that u are 167.8 cm is discretization because they rounded to the nearest milimeter so they discretized the height
thereofre, measuring tapes discretize continous quantities
can do the same with weather, we dont care if it is 12.9832983 degrees out, we just care that it is 12 degrees.
Time: we dont care if it si 2:59:59 we care that it is 3 so we discretized it
putting price as $19.95 instead of twenty makes us think that it is 19 dollars not 20
So to summarize, discretization is when a continuous quantity is converted to a discrete quantity with an appropriate level of precision. Humans naturally discretize quantities because it is practical and convenient.
Digital meaning
-latin roots (word digit)
-means finger (it is fingers and toes)
therefore, digital means “related to your fingers” or COUNTABLE
- bascially means that it is discrete (countable)
Digits: 10 digits, 0-9, make up numbers
Present meaning:
-anything that can be represented by 0 and 1, because this means that it can be stored on a computer
-therefore also means anything related to a computer because if it is digitalized, then it can be on a computer
KNOW that if u are working with something digital, you are working with discretized data (doesnt necessarily mean stored on computer, but usually does)
If data is digital what does this mean
-it is discrete data
Means we can count it, so it is discrete, not continous
discrete and data are interchangeable words
What is the opposite of digital
Analog
Analog and continous are interchangeable, just like how digital and discrete are
Think:
Analog thermometers: continous, and have infinite percision
Digital: discrete and only represent the temp accurate to few decimals, so it jumps
Digitalization
basically discretization,
-making data change from continous to discrete so that it can be digital, needed to happen so that the data can be stored and represented on a digital computer
Signal
A quantity that changes over time
Think: if plotting true height growth, it would be a continous plot, and this height curve is a signal
TO discretize this, we need to discretize two things, the height and time. Done by sampling (discretizing time) and height discretization
Discretizing time is called?
Sampling
-picking if we are going to measure time in seconds, years, months,
-basically the interval which you will be measuring at is the discritzation of time
Sampling frequency
sample at a regular interval ie meausring time t a requglar interval
-measured in hertz (Hz), measures how many times something happens per second, ex: if something is measured 10 times in a second, it would be 10 Hz
When discretizing data, and plotting it, if the jumps are visible this means…
-the sampling (intervals which we picked to measure time ) and the discretization of height was at a lower precision
-higher precision means things may appear smooth even though they are not (this is because we picked really good intervals and stuff so we cant visualize the jumps so it appears continous)
Most of the time, computers are digitizing things at high precision, magic of modern computers
Digital data is stored and represented in
Binary (0=off and 1=on)
-although it may seem easier to have all 10 digits 0-9 and use those, using binary is like spy light on in room situation (when light in window on it means go with assasination, when off it means no). It is able to communicate a message with two
Problem with binary?
Can only communicate two different messages/values.