I have a function that's represented as a long list of values that I want to integrate. I can do it procedurally with Simpson's rule. ListConvolve generally runs faster then procedural code, so i would like to use it if I can find the right kernel.
My list can be of even or odd length, and for the latter I would like to use a method that is better than the trapezoid method. Is there a higher order method for this case?
InterpolationandNIntegratewith an appropriate rule forMethod? – rm -rf Jun 12 '13 at 13:06Integrate[]would work nicely for interpolating functions. – J. M.'s missing motivation Jun 12 '13 at 13:11{1,4,2,4,2,...,4,2,1}vector and useDot. – Daniel Lichtblau Jun 12 '13 at 18:32