In practice, the analog sinusoidal waveform is approximately generated with binary voltage levels using Pulse Width Modulation (PMW).
pMW modulates the duty cycles of the DC power to simulate a voltage between the DC power voltage and zero voltage.