<RefEntry id="expt">
<!-- This file is generated automatically from the DSSSL source. -->
<!-- Do not edit this file! -->
<?html-filename expt.html>

<RefMeta>
  <RefEntryTitle>expt</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>expt</RefName>
  <RefPurpose>Exponentiation</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(expt b n)
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Returns <literal>b</literal> raised to the <literal>n</literal>th power for integer <literal>n</literal> >= 0.</para>


</RefSect1>

<RefSect1><Title>Author</Title>

<para>
Norman Walsh, &lt;ndw@nwalsh.com&gt;
</para>
</RefSect1>
<RefSect1><Title>Source Code</Title>

<ProgramListing>
(define (expt b n)
  ;; Exponentiation
  ;; 
  (if (<= n 0)
      1
      (* b (expt b (- n 1)))))
</ProgramListing>
</RefSect1>

</RefEntry>
