- Podcasts
- CyberSecurity Summary
- Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More
Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More
CyberSecurity Summary
- May 8, 2026
- 17 min
About this episodeExplores the intersection of programming, mathematics, and science. The author demonstrates how to use Python 3 to solve high school-level…
You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary
Get the Book now from Amazon:
https://www.amazon.com/Doing-Math-Python-Programming-Statistics-ebook/dp/B014EELUFQ?&linkCode=ll2&tag=cvthunderx-20&linkId=017a991011ee62ba220e7412ed01f005&language=en_US&ref_=as_li_ss_tl
Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More
So I want you to think back to high school math for a second. Oh boy, right, just picture it. You're sitting at this tiny, uncomfortable desk. You've got a yellow number two pencil in your hand, and you're just staring down at this massive page of complex equations, endless rows of them, exactly, and the expectation was that you'd solve them all completely by hand, just grinding through the arithmetics step by tedious step.
Because to a human mind, and the number three is just it's just the concept of three. Sure, whether it's written as a single digit or three point zero, or as a fraction like three over one. Our brains process it is the exact same mathematical value, but Python allocates memory and operations differently depending on this specific type of data.
That's a great way to put it, And that fit Python throws is what we call an exception, right and exception. What's fascinating here is that this strict type casting is actually a brilliant enforcer of mathematical rigor. Python gets even more granular than just integers and floats. Actually, oh really, like how well you can work with explicit fractions using the format fraction three four, and it even handles complex numbers natively.
It's so cool, But uh, I have to play the devil's advocate for a second here. Sure, go for it if you're a student, isn't writing a quadratic equation solver just a highly engineered way to cheat at your homework? I mean, you plug in the variables, the machine gives you the answer, and you learn nothing about the actual math.
But when you feed that array into matt plotlib, you map the years onto the x axis and the temperatures onto the y axis. The text even shows how you can layer the monthly temperature data for multiple specific years, say two thousand and twenty six and twenty twelve, all onto the exact same graph.
What's fascinating. Here is how this loop bridges the continuous and the discrete. I mean, in physical reality, the ball's flight is a continuous, unbroken arc, but computers can only process discrete, quantified steps. By looping the calculation every point zero zero one seconds, you're essentially performing rudimentary numerical integration.
