title: Segmentation fault when calling function recursively
body: <p>My task is to create a function which should calculate the arcsin for my input.</p>
  <p>I tried to debug it using xcode. Everything works fine until return <code>arcsin(new);</code> is called. Then it's a <code>segmentation fault: 11</code>. I am not sure why but breakpoint at <code>float arcsin(floatvalue){ ... }</code>while running second cycle tells me that float old and float value is <code>NAN</code>.</p>
  <pre><code>float arcsin(float value){
  
       float old = value;
       float new = value + (0.5 * ((value * value * value)/3));
       float accurate = 0.00001;  
  
       if ((new - old) &lt; accurate){
          return new;
       }
  
       else{
          return arcsin(new);
       }
  }
  
  
  int function_arcsin(int sigdig, float value){
  
      value = arcsin(value);
      printf(&quot;%.10e\n&quot;,value);
  
      return 0;
  }
  </code></pre>