The scheme illustrated above generates a switching edge at the instant of crossing of the sine wave and the triangle. This is an easy scheme to implement using analog electronics but suffers the imprecision and drift of all analog computation as well as having difficulties of generating multiple edges when the signal has even a small added noise. Many modulators are now implemented digitally but there is difficulty is computing the precise intercept of the modulating wave and the carrier. Regular sampled PWM makes the width of the pulse proportional to the value of the modulating signal at the beginning of the carrier period. In Fig 5 the intercept of the sample values with the traingle determine the edges of the Pulses. For a sawtooth wave of frequency fs the samples are at 2fs