0
$\begingroup$
  1. Write a function called DOTPRODUCT that has two inputs u and v, assumed to be two non-empty lists of numbers of arbitrary length, checks that the two lists are of equal length, prints an error message and aborts if the two lengths are unequal, and computes the dot product of the two lists if the lengths are equal.
$\endgroup$
3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.