DEV Community

James
James

Posted on • Originally published at ncot.uk on

How trying to make pocket calculators do complex maths accidentally invented modern computing

What happens when you set out to build a pocket calculator? Well in this case it turns out you also accidentally invent desktop computers, and spawn a bunch of CPUs that are still being used today.

Follow along as we go through the thoroughly bizarre story of how trying to do complex maths and fit it in our pockets lead directly to the machine you’re using right now to watch this video, which you should totally watch, now. Go on, click it.

Calculators were originally like computers – huge boxes that required care and maintenance and sat firmly on a desk plugged into the wall. Today everyone wants to own a smartphone, back then everyone wanted a pocket calculator.

The story of trying to cram a whole shoebox of electronics into a pocket involves dodgy corporate dealings, people starting their own companies and deciding that while calculators were nice, being able to program them would be even better.

Part of the difficulty of building a calculator is working out how to understand the maths the operators were entering. A basic four function calculator can be thought of as a simple state machine, but once we get to doing scientific functions or longer multi stage formulae. And this is where a technique known as Reverse Polish Notation comes in.

Back then computers were too low powered to cope with parsing text and checking for dumb human things like missing brackets or maths that made no sense. So we had to do that for them.

The history of how the modern computer came to be is pretty interesting. There’s a fascinating explanation onthis website, which was then turned into an equally fascinating book that you should go and read. Here’s a link to the Google Books version, but the real thing is better to read.

Related posts:

  1. DIY Solar – is it worth it?
  2. Why the 1880 US Census lead to the invention of the computer
  3. Upgrading My Atari ST to 4MB

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

👋 Kindness is contagious

Dive into this informative piece, backed by our vibrant DEV Community

Whether you’re a novice or a pro, your perspective enriches our collective insight.

A simple “thank you” can lift someone’s spirits—share your gratitude in the comments!

On DEV, the power of shared knowledge paves a smoother path and tightens our community ties. Found value here? A quick thanks to the author makes a big impact.

Okay