title: Error of calling functions in Scheme
body: <p>I am trying to define two functions using Scheme. One is the close_to function which looks like this:</p>
  
  <pre><code>    (define (close_to x y)(if(&lt; (abs (- x y)) 0.0001)(#t)#f))
  </code></pre>
  
  <p>it should return true if the number x and y has a difference that is smaller than 0.0001 and false otherwise. However, it keeps throwing the error:</p>
  
  <blockquote>
    <p>function call: expected a function after the open parenthesis, but received true</p>
  </blockquote>
  
  <p>when I call it </p>
  
  <pre><code>    (close_to 4 3.99999999)
  </code></pre>
  
  <p>The second function is the improve function which looks like this:</p>
  
  <pre><code>    (define (improve x y)(average y /(x y)))
  </code></pre>
  
  <p>it should return the average of y and x/y. Similarly, I am getting the error:</p>
  
  <blockquote>
    <p>function call: expected a function after the open parenthesis, but received 1</p>
  </blockquote>
  
  <p>when I call it </p>
  
  <pre><code>    (improve 1 2)
  </code></pre>
  
  <p>What am I doing wrong? Can anyone help me?   </p>