Maths and Logic

Maths and logic
Discrete maths is data with certain values, e.g if you had to half a class of 17 students you can’t cut a person in half
Continuous maths is data with any values, e.g a person height could be any value and not just a certain value.

Number Types

25/9/19-Recap of maths, addition, multiplication, division and subtracting
Used and recap of Bidmas
Learnt binary conversion.

Binary only uses number 0-1, the number 00100101 represents 37. Binary acts as an on and off switch on being shown as 1 and off being 0 so a table of 8 like
|128|64|32|16| 8 | 4 | 2 | 1 |
0 0 1 0 0 1 0 1
can be shown as 37 since only the numbers with 1 are “on”.

Denary uses the number 0-9 and is our basic counting number system
0 ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9.

Hexadecimal uses 16 numbers 0-F
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
A= 10, B= 11, C= 12, D= 13, E= 14, F= 15.
Denary can be converted into hex like the number 166 = A6.
A = How many times 16 goes into 166, 10 and the remainder 6 which gives us A6.
|x*16| |y*1| –> Hex to Denary.
X = X/16= X remainder = Y Denary to Hex.

We learnt about/ recapped the averages, Mean, Medium, Mode and Range.
Mean – All the numbers added together divided by the amount of number.

Medium – Put all the numbers in order of size, smallest to largest and then the answer is the middle number.

Mode – The most common number, the number that appears the most.

Range – The biggest number subtracted by the smallest number.

Matrices
Matrices are a rectangle array sorted in rows and columns.
You can add and subtract matrices easily, 0,0 + 0,0 and 0,1 + 0,1 and 1,0 + 1,0 finally 1,1 + 1,1.

Matrix Addition

Negative matrices

Matrix Negative

Subtracting matrices is similar to adding them.

Matrix Subtraction

To multiply matrices you need to use the dot product which is the first row multiplied by the first column.

Matrix Multiply Dot Product
Matrix Multiply next entry

Dot product, Ax = width of vector A, Ay = Height of vector A, Bx = Height of vector B, By = Width of vector B. Ax * Bx + Ay * By.


Follow My Blog

Get new content delivered directly to your inbox.

Design a site like this with WordPress.com
Get started