Tag Info

New answers tagged


You don't even need to numerically integrate. Each of your intended integrals is simply: $$\int_0^\infty e^{-k x^2}dx={1\over 2}\sqrt{\pi\over k}$$ Also you don't need to evaluate a bunch of Bessel functions, since BesselJZero[1/2,n] is $n\pi$. As noted by @belisarius, your first term would diverge if you integrate to $\infty$, since the integrand is 1. ...


Parallelize[ Do[NIntegrate[BesselJ[2, x], {x, 0, 10000}], {i, 1, 100}] ] // AbsoluteTiming on same PC clc clear all; f = @(x) besselj(2,x); tic for i=1:100 integral(f,0,10000); end toc %Elapsed time is 0.924171 seconds. Just to note, tic/toc and AbsoluteTiming measure elapsed time, not cpu time. On mutlicore, it is possible that elapsed time is ...

Top 50 recent answers are included