Be familiar with the concept of a vector and the following notations for specifying a vector: - [2.0, 3.14159, -1.0, 2.718281828]
- 4-vector over ℝ written as ℝ4
- function interpretation
- 0 ↦ 2.0
- 1 ↦ 3.14159
- 2 ↦ -1.0
- 3 ↦ 2.718281828
- ↦ means maps to
That all the entries must be drawn from the same field, eg ℝ. | A vector can be represented as a list of numbers, as a function and as a way of representing a geometric point in space. A dictionary is a useful way of representing a vector if a vector is viewed as a function. f : S → ℝ the set S = {0,1,2,3} and the co-domain, ℝ, the set of Reals For example, in Python the 4-vector example could be represented as a dictionary as follows: {0:2.0, 1:3.14159, 2:-1.0, 3:2.718281828} |