e></div>
<p>The getter functions then extract the real and imaginary components of
<code>z</code> and assign them to <code>re</code> and <code>im</code> respectively.</p>
<p>The function <code>to_complex</code> constructs a complex number from its real
and imaginary components. The functional form needs to be used
whenever the components are not literal numerals, as in the following
example.</p>
<div class="sourceCode" id="cb12"><pre class="sourceCode stan"><code class="sourceCode stan"><span id="cb12-1"><a