integrate sin(omega t) from 0 to t