title: Scheme Harmonic Function
body: <p>Is there a way to write this function using an if statement instead of cond? The following works as intended, but I was curious to see another option.</p>
  
  <pre><code>(define (harmonic-numbers n)
      (cond ((= n 1) 1)
         ((&gt; n 1) (+ (/ 1 n)
         (harmonic-numbers(- n 1))))))
  </code></pre>