Square wave function of period 1 and  approximate derivative using the Central Difference method. Sampling Interval 0.001

Square wave function of period 1 and approximate derivative using the Central Difference method. Sampling Interval 0.001