Pick a quantizer width and see the staircase, its error, and the signal-to-noise ratio measured on a real sine next to the textbook 6.02 N + 1.76 dB.
This widget runs in your browser and needs JavaScript.