I have the following problem:
My c++ code can compute two functions
f1(i1,i2,i3,i4)
f2(j1,j2)
for every set of {i1,i2,i3,i4} I get some value of f1 and for every set of {j1,j2} I get some value of f2.
the sets {i1,i2,i3,i4} and {j1,j2} are given on a FIXED mesh with some constant discretisation step "h".
I need to calculate, in mathematical language, an Integral F3(x1,x3)=Integral[f1(x1,x2,x3,x4)*f2(x3,x4) dx3 dx4]
The the simple summation is not good enough, since f2 has many jumps.
Is there some c++ library which can do this sort of integration? Or some algorhithm which is easy to implement (I am not really good on c++)
many thanks