Vectors Flashcards
(10 cards)
What is a vector?
A data structure that represents a size and a magnitude, made up of at least 2 components.
How can vectors be represented?
- List of numbers
- Functions
- Geometric point in space pointed to by an arrow
How can a vector with n components from the set of reals be written?
Rn
How can a vector be represented using a dictionary?
- Key: The value in the domain
- Value: The image in the codomain
How can we express a vector as a function?
f:S —> R where S is the set of values that the function can be applied to (domain) and R is the potential outputs of the function (co-domain)
What is the dot product of 2 vectors?
The single value result when applying one vector’s magnitude and direction to another
How do you calculate the dot product?
U = [u1, u2, … , un]
V = [v1, v2, … , vn]
U x V = u1v1 + u2v2 + … unvn
What are the uses of the dot product?
Can be used to find the angle between them using the formula:
ab = |a||b|cosx
What is a convex combination of two vectors?
A vector that lies on the line between two vectors
When is D a convex combination where:
D = aA + bB
Where A, B are vectors and a,b are scalars
If a and b are both greater than or equal to 0 and a + b = 1