input: an index (pos) and a value changes the specified component (pos) with the 'value'
(self, pos, value)
| 160 | return Vector(components) |
| 161 | |
| 162 | def changeComponent(self, pos, value): |
| 163 | """ |
| 164 | input: an index (pos) and a value |
| 165 | changes the specified component (pos) with the |
| 166 | 'value' |
| 167 | """ |
| 168 | # precondition |
| 169 | assert pos >= 0 and pos < len(self.__components) |
| 170 | self.__components[pos] = value |
| 171 | |
| 172 | def norm(self): |
| 173 | """ |
no outgoing calls