How to Use Python as Your Physics Calculator

Rhett Allain
9 min readJan 27, 2023
Photo: Rhett Allain. Don’t use these calculators

Remember when humans used to calculate all their stuff on paper? Or maybe they were super-tech savvy and instead used a SLIDE-RULE? OK, that was a little before my time. But then this new fancy thing came out. They called it an electronic calculator. Some people surely hated it, but eventually everyone started using it.

But the era of the calculator as ended. Let us welcome with open arms, the new era. It’s not python, it’s just programing. There’s no need to continue with that ancient (and most likely) expensive calculator.

Oh, but you aren’t too familiar with python! Maybe you don’t know where or how to start. Don’t worry, I’m going to go over all the details. It’s going to be great.

Intro to Python

I guess this would be the “hello world” section, but I’m just going to jump into the calculations. Of course the first question: how do you run python? Although there are many options, I’m going to suggest one (and then stick with that method). It’s possible to run (and save) all your calculations online with your web browser. Just head over to trinket.io.

--

--

Rhett Allain

Physics faculty, science blogger of all things geek. Technical Consultant for CBS MacGyver and MythBusters. WIRED blogger.