You will write three small functions about scalar and vector quantities.
The idea. A scalar has size only. A vector has size and direction. Two vectors at right angles have a resultant given by Pythagoras, and its direction is found from the tangent.
Your tasks.
kind, return "scalar" or "vector" for a quantity name, using the two lists.resultant, return the size of the resultant of two vectors a and b at right angles.angle, return the angle in degrees between the resultant and the vector a.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…