← Main book chapter 6
Contents / index
Browser back
← Previous chapter
Next chapter →
Laboratory
Memory
Cards
Sort
Match
Visuals
Coding
Quiz
Programming practice
Power iteration normalization — Chapter 6
Normalize the vector after multiplying by A.
Language:
JavaScript
Student code
function powerStep(A,v){ let w=[A[0][0]*v[0]+A[0][1]*v[1], A[1][0]*v[0]+A[1][1]*v[1]]; return w; }
Check code
Show corrected code
Reset buggy code
Feedback
Corrected code