I have an integration to do. I want to integrate.
$\int_0^\infty \sin^2(2\pi t)f(t)\mathrm{d}t$$$ \int_0^\infty \sin^2(2\pi t)f(t)\mathrm{d}t $$
where $f(t)$ takesis known only at discrete values fromgiven in an array in the form $\{t,f(t)\}$ $\{t_i,f_i\}$ with $i=1\ldots n$.
The time steps in the array is 1.1s. Can you please suggest a method to do this? I tried using the Trapezoidal method for numerical integration but gave a bad approximation. Is there an easy method with inbuilt function or another method?