Vector Magnitude
In this section you will practice and apply what you have learned from the Vector Magnitude simulations, creating a calculator to calculate the vector magnitude given a user input of vector components of a vector in 1, 2, or 3 dimensions and understanding the calculations being done.
If you are looking for a reference for Python consider looking at the Python Reference Sheet on the site.
Below are sample runs of some of the outputs you should get when running the program.
Vector Magnitude
For user input choice = 1 and x = 6.7, the output should be:
For user input choice = 2 and x = 3, y = 4, the output should be:
For user input choice = 2 and x = 8, y = 11, the output should be:
For user input choice = 3 and x = 2, y = 3, z = 4, the output should be:
For user input choice = 3 and x = 8, y = 11, z = 16, the output should be:
Here is a code editor so that you can compute your calculator program.
Go Back to Vector Exercises Page