by Amit Saha
August 2015, 264 pp.
“Saha does an excellent job providing a clear link between Python and upper-level math concepts, and demonstrates how Python can be transformed into a mathematical stage. This book deserves a spot on every geometry teacher’s bookshelf.”
Doing Math with Python shows you how to use Python to delve into high school–level math topics like statistics, geometry, probability, and calculus. You’ll start with simple projects, like a factoring program and a quadratic-equation solver, and then create more complex projects once you’ve gotten the hang of things.
Along the way, you’ll discover new ways to explore math and gain valuable programming skills that you’ll use throughout your study of math and computer science. Learn how to:
Creative coding challenges and applied examples help you see how you can put your new math and coding skills into practice. You’ll write an inequality solver, plot gravity’s effect on how far a bullet will travel, shuffle a deck of cards, estimate the area of a circle by throwing 100,000 “darts” at a board, explore the relationship between the Fibonacci sequence and the golden ratio, and more.
Whether you’re interested in math but have yet to dip into programming or you’re a teacher looking to bring programming into the classroom, you’ll find that Python makes programming easy and practical. Let Python handle the grunt work while you focus on the math.
Uses Python 3
About the Author
Amit Saha is a software engineer who has worked for Red Hat and Sun Microsystems. He created and maintains Fedora Scientific, a Linux distribution for scientific and educational users. He is also the author of Write Your First Program (Prentice Hall Learning).
Table of Contents
Chapter 1: Working with Numbers
Appendix A: Software Installation
Amit Saha was interviewed by Mouse vs. Python as the PyDev of the Week!
"This is a great book — the level of the material is carefully judged throughout, the mathematics and the computing complement and motivate each other, and the exercises are superb."
"Will show you how to reliably express mathematical ideas and operations in Python code...the grounding this gives you will make your Python code more effective, reliable and meaningful."
"A good new resource for budding data scientists...contains all the important first ingredients that a newbie data scientist needs to get started in the field."
"Doing Math with Python helps students learn how to do math with the help of a little programming. It’s like learning two subjects at once."
"Doing Math with Python is an amazing book. I wish I could have encountered this book earlier in my own education as a way to better solidify the math I was learning. I'm working on incorporating aspects into my regular classroom because I and my MESA students have been enjoying it so much. If you are even considering getting this book, you should. And if you aren't considering it I think you should change your mind."
"Great for gaining a very basic understanding of Python and quickly turning that into something with real-world application. Along the way, you’ll deepen your skills in the language."