title: Scilab algorithm - recursion
body: <p>I have a code written in Scilab:</p>
  
  <pre><code>function v=myhorner2(a,x)
      N=length(a)
      v=a(1)
      for i=2:N do
          v=v*x+a(i))
      end
  endfunction
  </code></pre>
  
  <p>which is working well. Now I need to do the recursion with the same code, but it seems that it's not working - where's the mistake?</p>
  
  <pre><code>function myhorner2(a,x)
      if i=2:N then
           myhorner2(a,x)
           disp (i=2:i+1)
           myhorner2(a+1,x)
      else 
          disp ([v=a])
      end
  endfunction
  </code></pre>
  
  <p>I'm a beginner. Thanks for your feedback</p>