結果 : integral of square wave function