subject
Physics, 05.02.2020 11:50 CaraRose1887

Lab exercise #12assignment overviewwe are going to work with overloaded operators and making our own class. we are going to make a 2d vector class. some backgroundso if you don’t remember, here is a little background on two-dimensional vectors. a vector is basically an arrow that has a magnitude (a length) and a direction (an angle with respect to typically the x axis). it usually is represented as an x, y pair, where the origin of the vector is a 0,0 and the head of the vector is at thelisted pair. a vectorv + w v-wv*2here are some of the operations you can perform on a vector.vector addition. if v1 is (x, y) and v2 is (a, b), the v+w is (x+a, y+b), a vectorvector multiplication by a scalar. if v1 is (x, y), the v*n is (x*n, y*n), a vectorvector subtraction v-w is the same as v+(w*-1), a vectorvector multiplication with another vector. there are two possibilities, dot product or cross product. we’ll do dot product. if v=(x, y) and w=(a, b), then v*w = x*a + y*b, a scalar. thus the dot product yields a scalar, not a vectorvector magnitude. the magnitude based on the pythagorean theorem for a v=(x, y) says that the magnitude is sqrt(x**2 + y**2). you might look at math. hypot for this

ansver
Answers: 1

Another question on Physics

question
Physics, 22.06.2019 04:50
*drag each tile to the correct location in the sequence* the table shows chronological events in the life of our sun, a medium-sized star. place the missing events into the correct rows of the table.
Answers: 3
question
Physics, 22.06.2019 23:00
Which of the following describes how a microwave heats food
Answers: 2
question
Physics, 23.06.2019 01:00
Carmen is load furniture and boxes onto a moving truck. she picks up boxes of her things, places them on a cart, and pushes the cart to the moving van. which term best describes the type of force carmen uses? a. contact b. friction c. gravity d. noncontact
Answers: 2
question
Physics, 23.06.2019 01:00
7types of electromagnetic waves from lowest to highest frequency
Answers: 3
You know the right answer?
Lab exercise #12assignment overviewwe are going to work with overloaded operators and making our own...
Questions
question
Biology, 27.03.2021 06:20
question
History, 27.03.2021 06:20
question
Mathematics, 27.03.2021 06:20
Questions on the website: 13722361