maths Flashcards
what are natural numbers
N: positive integers
what are integers
Z: whole numbers
what are real numbers
R: numbers with no imaginary parts
what are complex numbers
C: numbers with real and imaginary parts
what are rational numbers
Q: numbers that can be written as fractions
what is exclusive and inclusive counting?
there are n up to and including / excluding this one
how do programming languages represent numbers?
they have a largest number and once exceeded, go back to the lowest number. more of a number ring
what does commutative and associative mean?
(using multiplication as an example but works for addition and more algorithms)
commutative: ab = ba
associative: a(bc) = (ab)c
what is a neutral and annihilating element?
an element that when a number and it are put together in the function return the original number and 0 respectively
what is a commutative ring and a commutative semiring?
they are both sets of numbers that where there are can be multiplied and added. A ring has an additive inverse meaning every number has another number that when added together returns 0. an example of a commutative ring and semiring would be integers and natural numbers respectively
what does [-3, 5) mean?
{-3, -2, -1, 0, 1, 2, 3, 4}
what does Σ{…} and Π{…} mean?
sum and product of the elements in the list
how do you find the negative version of a number in complement notation?
flip the bits and add one. for non binary number systems such as denary, flipping 0 gets 9, 1 gets 8 etc`
what does it mean for two numbers to be coprime?
they have no common factors
what is a field?
a commutative ring with a multiplicative inverse for ever number such that a * MI = 1
such as rational and real numbers
what laws are true if a number system has additive and multiplicative inverses?
additive cancellation law: if x+a = y+a, x=y
multiplicative cancellation law: if xa = ya, x=y
these laws
how do you calculate a floating point binary number?
mantissa: first digit is 1s column (decimal point is between 1st and 2nd digits)
exponent: whatever the number is, subtract the value of the largest bit
then: answer = m * 2^e
how do you work with numbers at a higher accuracy than the floating point can represent?
split the number up like 3.404 ×10^8 + 7.191 ×10^2 = 3.404007191 ×10^8
what does congruent modulo mean and how is it written?
if two numbers have the same remainder when divided by a number, they are congruent modulo (mod x)
eg: 168 ≡ 3468 (mod 10)
why is Zₘ always a commutative ring but Z isn’t?
because the additive inverse of a positive inverse is also positive because Zₘ = [0,m)
eg: m=10
3 +₁₀ 7 = (3+7) MOD 10 = 0 so 7 is the additive inverse to 3
when is Zₘ a field?
when every number in Zₘ apart from 0 has a multiplicative inverse meaning they all have to be coprime with m. This means m has to be prime
when are sets equal?
when they both include the same unique numbers no matter of the order or how many times each is included
how is the set of things in A that are not in B represented?
A\B
how can set builder notation be used to show
‘the set of all natural numbers whose cube is greater than or equal to 100’
{ n∈N| n³ ≥ 100}