Implement the _ _sub_ _ method for the Vector class of Section 2.3.3, so
that the expression u−v returns a new vector instance representing the
difference between two vectors.
Implement the _ _neg_ _ method for the Vector class of Section 2.3.3, so
that the expression −v returns a new vector instance whose coordinates
are all the negated values of the respective coordinates of v.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here