Question

Box 4: Question Both of these functions take as input a vector, in this case puck.vel. What is the output of mag2()? In other

0 0
Add a comment Improve this question Transcribed image text
Answer #1

mag2( ) calculates the square of the magnitude of vector

Thus when we will apply mag2( ) on puck.vel , we will get the square of the magnitude of vector puck.vel.

And norm( ) calculates a unit vector in the direction of vector.

Thus when we apply norm( ) on puck.vel it gives the unit vector in the direction of vector puck.vel

Add a comment
Know the answer?
Add Answer to:
Box 4: Question Both of these functions take as input a vector, in this case puck.vel....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT