% pulse2(x,r) is a periodic function of x with period 1. % For 0 < x < r, the function is a polynomial "spike" with % area 1. For r < x < 1, the function is zero. Outside % of 0