You will write three small functions for column vectors, and use them to work out a combination.
Your tasks.
add, return the sum of the vectors a and b.scale, return the vector k times a.result to for a = (4, -1) and b = (-2, 3). Use your two functions, and scale(-1, v) for a subtraction.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…