mata function integrate(f,a,b,n,u,v) { s = 0 h = (b-a)/n m = length(u) for (i=0; i