f(x)=1+sinπx
=sin²(0.5πx)+cos²(0.5πx)+2sin(0.5πx)cos(0.5πx)
=[sin(0.5πx)+cos(0.5πx)]²
=2sin²(0.5πx+0.25π)
是周期函数