The Casio 14-A was indeed the world’s first all-electric desk calculator. But by “desk calculator,” they literally mean “a desk that is a calculator.” The display/keyboard pictured was literally attached to a desk filled with hundreds of relays and weighed 140 kg. [0]
The “all-electric” claim is interesting. There had been scores of electric calculators for decades (Friden, Marchant, etc.) but were merely driven by an electric motor. The calculations were still performed by gears and cams and linkages.
https://en.wikipedia.org/wiki/Adding_machine
"Subtraction was impossible, except by adding the complement of a number (for instance, subtract 2.50 by adding 9,997.50)."
A few fancier ones could multiply, but they would do so by repeating an addition some number of repetitions. Nearly all output their results on a paper tape much like "store receipts" today, only printed in ink instead of via thermal transfer paper.
But multiplication is just repeated addition, and division is just repeated subtraction. Some of the highest-end units could do square roots! Check out CuriousMarc’s videos.
https://ww1.microchip.com/downloads/en/Appnotes/90003250A.pd...
https://docs.arduino.cc/language-reference/en/functions/anal...
A PWM output followed by an adequate filter can be considered a cheap, low quality type of DAC. You never get the quality as good as you want but you get it good enough.
It could be fun to implement a scientific notation result display for answers that would otherwise overflow, although off the top of my head I'm not sure what the cleanest way to do that is.