Chapter 2: Problem 4
(a) Write a function that returns the two-dimensional unit vector, \(\left(u_{x}, u_{y}\right)\), corresponding to an angle \(\theta\) with the \(x\)-axis. You can use the formula \(\left(u_{x}, u_{y}\right)=\) \((\cos \theta, \sin \theta)\), where \(\theta\) is given in radians. (b) Find the unit vectors for \(\theta=0, \pi / 6, \pi / 3, \pi / 2,3 \pi / 2\). (c) Rewrite the function to instead take the argument \(\theta\) in degrees.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.