title: Integration of 0-th order Bessel function using MATLAB
body: <p>I have simple question. I'm trying to evaluate improper integral of 0th order Bessel function using Matlab R2012a:</p>
  
  <pre><code>v = integral(@(x)(besselj(0, x), 0, Inf)
  </code></pre>
  
  <p>which gives me v = 3.7573e+09. However this should be v = 1 in theory. When I'm trying to do </p>
  
  <pre><code>v = integral(@(l)besselj(0,l), 0, 1000)
  </code></pre>
  
  <p>it results to v = 1.0047. Could you briefly explain me, what is going wrong with integration? And how to properly integrate Bessel-type functions?</p>