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 09:50
Assume that you have an sorted array of records. assume that the length of the array (n) is known. give two different methods to search for a specific value in this array. you can use english or pseudo-code for your algorithm. what is the time complexity for each algorithm and why?
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
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
Mathematics, 12.12.2020 17:00
question
Mathematics, 12.12.2020 17:00
question
Computers and Technology, 12.12.2020 17:00
question
Mathematics, 12.12.2020 17:00
question
Biology, 12.12.2020 17:00
question
Mathematics, 12.12.2020 17:00
question
Mathematics, 12.12.2020 17:00
Questions on the website: 13722367