><span class="r-pr">#&gt;</span> [1] -0.7630200 -0.6463749</span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># demonstrate how the power method converges to a solution</span></span></span>
<span class="r-in"><span><span class="fu">powerMethod</span><span class="op">(</span><span class="va">A</span>, v <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><sp