This function average, f3, clearly lies in the range [0,1]. Since the periodic variation A is the average of and therefore close to k1 and k2, the moiré effect is distinctively demonstrated by the sinusoidal envelope "beat" function cos(Bx), whose periodic variation is half the difference of the periodic variations k1 and k2 (and evidently much lower in frequency).