subject

Working in python. 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. 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 and 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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
You know the right answer?
Working in python. this program is meant to give you practice with lists and looping on them, as wel...
Questions
question
English, 11.03.2021 17:20
question
Mathematics, 11.03.2021 17:20