iki/Golden_ratio" target="_top">golden ratio phi
        = 1.618033989...</a> can be computed from the simplest continued fraction
        of all:
      </p>
<p>
        <span class="inlinemediaobject"><img src="../../../equations/fraction3.svg"></span>
      </p>
<p>
        We begin by defining a generator function:
      </p>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">T</span><span class="s