I want to integrate a function. can anybody suggest me how to improve the code..
for( x = x1; x <= x2; x += 0.01)
f1 = some function(x)
res += f1/10000.0;
IS this right??
Can u plzz show me the code to do integration using any std rules..