Question: -using paython - Write a function named vectorNorm that normalizes a vector (finds the unit vector). A vector can be normalized by dividing each individual
-using paython -
Write a function named vectorNorm that normalizes a vector (finds the unit vector). A vector can be normalized by dividing each individual component of the vector by its magnitude. Your input for this function will be a vector i.e. 1 dimensional list containing 3 integers. For example if the input list is: vector = [2. 3, -4] Then you should return the unit vector(1-Dimensional list) such as: [0.3713906763541037, 0.5570860145311556, -0.7427813527082074] Answer: (penalty regime: 0 %)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
