I reasoned behind the mathematical implementation of the power method for finding eigenvalues, and then implemented it in code.