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 10:00
Which fact supports the conclusion that there will be fewer farm managers in the future? a) a farmer manager’s duties vary by the type of farm. b) farm technology is replacing some administrative jobs c) farm managers often need experience but not education. d) administrative duties include budgeting and training staff.
Answers: 2
question
Physics, 22.06.2019 18:00
Which of the following is not a physical property of mattera. melting pointb.heat of combustionc. viscosityd. boiling point
Answers: 1
question
Physics, 22.06.2019 23:00
Which wave is the result of amplification and produces a louder sound
Answers: 1
question
Physics, 23.06.2019 00:10
An astronaut floating in space is trying to use her jetpack to get back to her space station, but she is being pulled away by a nearby planet, as shown in the image below. her jetpack provides a constant thrust of 310 n. if she angles her jetpack in such a way that it cancels out the vertical force due to the planet's gravity, what is her net horizontal force? thaud 487 o a. 54.8 n toward the space station o b. 212.9 n toward the space station o c. 185.2 n toward the space station o d 956 n toward the space station
Answers: 1
You know the right answer?
Lab exercise #12assignment overviewwe are going to work with overloaded operators and making our own...
Questions
question
English, 27.11.2020 22:10
question
Social Studies, 27.11.2020 22:10
question
Business, 27.11.2020 22:10
Questions on the website: 13722360