Question: Problem 2. The equation for a unit vector in three-dimensional space is: Write a script that prompts the user for x, y, and z values,

Problem 2. The equation for a unit vector in three-dimensional space is: Write a script that prompts the user for x, y, and z values, and then calculates and prints the angles alpha, beta and gamma (in degrees, with two decimal places) that this unit vector makes with the coordinate axes. Recall that cos(alpha)-dot(u,el), where el is the unit vector (1,0,0) in the x-direction, and similarly for the angles beta and gamma Problem 2. The equation for a unit vector in three-dimensional space is: Write a script that prompts the user for x, y, and z values, and then calculates and prints the angles alpha, beta and gamma (in degrees, with two decimal places) that this unit vector makes with the coordinate axes. Recall that cos(alpha)-dot(u,el), where el is the unit vector (1,0,0) in the x-direction, and similarly for the angles beta and gamma
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
