title: FOR loops and range in Julia
body: <p>When I try to define range in a for loop when the range is less than 1 I get errors.</p>
  
  <p>For example the following code:</p>
  
  <pre><code>i = linspace(0, 3, 200)
  graph = zeros(length(i), 1)
  
  for j in 0:0.015:3
      graph[j] = j*cos(j^2)
  end
  </code></pre>
  
  <p>Reports the following error: <code>ERROR: BoundsError()</code></p>
  
  <p>Why is that?</p>