Skip to content
Snippets Groups Projects
Commit 270b5b75 authored by tuhe's avatar tuhe
Browse files

Minor updates before week 3+4 review on the 24th

parent c2d9c0ba
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,8 @@ def add(v1 : Vector, v2 : Vector) -> Vector: ...@@ -61,7 +61,8 @@ def add(v1 : Vector, v2 : Vector) -> Vector:
:param v2: The second vector. :param v2: The second vector.
:return: Their sum :math:`\mathbf{v}_1+\mathbf{v}_2` :return: Their sum :math:`\mathbf{v}_1+\mathbf{v}_2`
""" """
vector_sum = make_vector(v1.x + v2.x, v1.y+v2.y) # TODO: 1 lines missing.
raise NotImplementedError("Use make_vector to make create the new vector.")
return vector_sum return vector_sum
def sub(v1 : Vector, v2 : Vector) -> Vector: def sub(v1 : Vector, v2 : Vector) -> Vector:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment