Algebra Flashcards
What are the versions of these operators on vdmlab:
x, +, -, divide, ^x, root.
*, +, -, /, **, **(1/x).
What is a variable in maths?
A single letter which represents an unknown value. We use them when we are trying to figure out the value they represent or to say that something is true no matter what it’s value is.
What does algebra do?
Deals with combining values using operators to create expressions. Sometimes these are known, sometimes we use variables to represent those we don’t know.
What is a constant?
A value which we know.
What is a natural number?
A positive, whole number (0, 1, 5, 90)
What is an integer?
A positive/negative whole number (0, -20, 5)
What is a real number?
A positive/negative whole/fractional number (0, -20, 5, 4.5, 20,9)
What is true of operators?
Combine 2 numeric values + create a result. For most operators, if input values are integers, result will be integer. Tend to come in pairs where 1 is inverse of other and undoes its effect e.g. +/-, *//
What is true of 0?
We cannot divide by 0.
How do we type root in vdmlab?
c**(1/b). C is the number we root, b is the number which we are rooting by (e.g. b is 2 for square root)
How do we use power/root to find a variable?
Inverse of power is root (32=9 so 9(1/2)). If ab=c, c=a(1/b). Can only be used to find c.
To find b, we must use log. if ab=c, b=log↓ac e.g. 23=8 so 3 = log↓28. To type this in vdmlab, we say log (a,b) so 3 = log(2,8)
How do we divide when there is going to be a remainder?
We use div to get an integer + mod to get the remainder e.g. 13 div 5 = 2, 13 mod 5 = 3. The answer to the mod equation shouldn’t be as big as what we divide by.
How do we find x from div + mod answer
If a div b = d + a mod b = m, then a = d*b+m
e.g. x div 5 = 2, x mod 5 = 3.
What is a sequence?
A list of values which are separated by commas + surrounded by square brackets. e.g. [1, 5, 7, 9] or [].
How do we find the length of a sequence?
Len function e.g. len([2, 3, 4]) = 3 or s=[1, 25, 7], then len (s) = 3.