Calculation of an integral from a fast-oscillating function using Monte Carlo method integral-mc.c - Calculate f(x) = \int_0^x (sin(1/t))^2 dt res - results of a run ./integral_-mc > res integral-mc.gp - gnuplot script to plot the results collected in res gp integral-mc.gp