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, 23.06.2019 00:30
Which of the following statements are true for an isothermal process? check all that apply. - during an isothermal process, the work done by the gas equals the heat added to the gas. - during an isothermal process, the internal energy of the system changes. - an isothermal process is carried out at constant temperature. - an isothermal process is carried out at constant pressure. - an isothermal process is carried out at constant volume.
Answers: 1
question
Physics, 23.06.2019 21:00
Arod made of cobalt with a mass of 0.80 kg is heated to 800°c, then dropped into 6.00 kg of water at 10°c. what is the total change in entropy (in j/k) of the rod-water system, assuming no energy is lost by heat from this system to the surroundings
Answers: 3
question
Physics, 23.06.2019 21:30
Sthird law, what is the equal and opposite force to the downward force of gravity pulling on a man standing on the beach?
Answers: 2
question
Physics, 24.06.2019 02:10
4–66. the force of f = 30 n acts on the bracket as shown. determine the moment of the force about the a-a axis of the pipe if a = 60, b = 60, and g = 45. also, determine the coordinate direction angles of f in order to produce the maximum moment about the a-a axis. what is this moment?
Answers: 2
You know the right answer?
Lab exercise #12assignment overviewwe are going to work with overloaded operators and making our own...
Questions
question
Mathematics, 13.10.2020 21:01
question
Mathematics, 13.10.2020 21:01
question
Mathematics, 13.10.2020 21:01
question
Mathematics, 13.10.2020 21:01
question
Social Studies, 13.10.2020 21:01
question
History, 13.10.2020 21:01
question
Biology, 13.10.2020 21:01