subject

This program is meant to give you practice with lists and looping on them, as well as practice with vector computations. Write a program that lets a user enter two vectors, A and B, of arbitrary dimension and store each vector as a Python list. You should allow the user to first enter the dimension of the vector, then get the elements of the two vectors from the user. Then, you should output (in a clearly labeled way), the results of these computations: • The magnitude of vector A and the magnitude of vector B • A + B • A – B • The dot product (inner product) of A and B Note: You should use lists when solving this problem. Later we will see some other ways to work with vectors more directly.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:30, uh8hardiek
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
image
Computers and Technology, 23.06.2019 23:30, ayjahj
What can you prevent issues related to downloading content form the internet
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, andybiersack154
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, elha20
The valves of the heart and veins are similar in that they both
Answers: 1
You know the right answer?
This program is meant to give you practice with lists and looping on them, as well as practice with...

Questions in other subjects: