Buy New
$34.99$34.99
FREE delivery Wednesday, June 24 on orders shipped by Amazon over $35
Ships from: Amazon.com Sold by: Amazon.com
Used - Like New
$9.53$9.53
FREE delivery June 29 - July 1
Ships from: ThriftBooks-Phoenix Sold by: ThriftBooks-Phoenix
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More!
Purchase options and add-ons
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:
–Describe your data with statistics, and visualize it with line graphs, bar charts, and scatter plots
–Explore set theory and probability with programs for coin flips, dicing, and other games of chance
–Solve algebra problems using Python’s symbolic math functions
–Draw geometric shapes and explore fractals like the Barnsley fern, the Sierpinski triangle, and the Mandelbrot set
–Write programs to find derivatives and integrate functions
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
- ISBN-101593276400
- ISBN-13978-1593276409
- Edition1st
- PublisherNo Starch Press
- Publication dateAugust 1, 2015
- LanguageEnglish
- Dimensions7.05 x 0.67 x 9.25 inches
- Print length264 pages
Deals on related products
Customers also bought or read
- Impractical Python Projects: Playful Programming Activities to Make You Smarter
Paperback$19.45$19.45Delivery Jun 30 - Jul 2 - Modeling and Simulation in Python: An Introduction for Scientists and Engineers
Paperback$37.66$37.66FREE delivery Wed, Jun 24 - Object-Oriented Python: Master OOP by Building Games and GUIs
Paperback$17.76$17.76Delivery Wed, Jun 24 - Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
Paperback$31.91$31.91Delivery Wed, Jun 24 - The Big Book of Small Python Projects: 81 Easy Practice Programs
Paperback$34.31$34.31Delivery Wed, Jun 24 - Dive Into Algorithms: A Pythonic Adventure for the Intrepid Beginner
Paperback$33.95$33.95Delivery Wed, Jun 24 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$23.96$23.96Delivery Wed, Jun 24 - Python GUI Programming with Tkinter: Design and build functional and user-friendly GUI applications, 2nd Edition
Paperback$25.62$25.62Delivery Wed, Jun 24 - Math for Deep Learning: What You Need to Know to Understand Neural Networks
Paperback$35.68$35.68FREE delivery Wed, Jun 24 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
Paperback$19.99$19.99Delivery Wed, Jun 24 - Learn to Code by Solving Problems: A Python Programming Primer
Paperback$21.18$21.18Delivery Wed, Jun 24 - Think Like a Programmer: An Introduction to Creative Problem Solving
Paperback$22.55$22.55Delivery Jun 27 - Jul 1 - Python Tools for Scientists: An Introduction to Using Anaconda, JupyterLab, and Python's Scientific Libraries
Paperback$40.21$40.21FREE delivery Jun 29 - Jul 3 - Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples
Paperback$30.99$30.99Delivery Wed, Jun 24 - Python Playground, 2nd Edition: Geeky Projects for the Curious Programmer
Paperback$32.76$32.76Delivery Wed, Jun 24 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Wed, Jun 24 - Python for Kids, 2nd Edition: A Playful Introduction to Programming
Paperback$21.49$21.49Delivery Wed, Jun 24 - Dead Simple Python: Idiomatic Python for the Impatient Programmer
Paperback$47.97$47.97FREE delivery Jul 5 - 8 - Pandas Cookbook: Practical recipes for scientific computing, time series, and exploratory data analysis using Python
Paperback$39.99$39.99FREE delivery Wed, Jun 24 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$50.99$50.99FREE delivery Wed, Jun 24 - Linear Algebra with Python: Theory and Applications (Springer Undergraduate Texts in Mathematics and Technology)
Hardcover$58.99$58.99FREE delivery Wed, Jun 24 - Black Hat Python, 2nd Edition: Python Programming for Hackers and Pentesters
Paperback$20.78$20.78Delivery Wed, Jun 24 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python
Paperback$37.95$37.95FREE delivery Wed, Jun 24
Editorial Reviews
Review
—School Library Journal
About the Author
Product details
- Publisher : No Starch Press
- Publication date : August 1, 2015
- Edition : 1st
- Language : English
- Print length : 264 pages
- ISBN-10 : 1593276400
- ISBN-13 : 978-1593276409
- Item Weight : 1.16 pounds
- Dimensions : 7.05 x 0.67 x 9.25 inches
- Best Sellers Rank: #217,047 in Books (See Top 100 in Books)
- #167 in Python Programming
- #316 in Computer Programming Languages
- #714 in Mathematics (Books)
- Customer Reviews:
About the author

Amit Saha is a software engineer. Besides programming, he enjoys sharing what he learns by writing beginner friendly articles and books. Most of his writings are strongly influenced by his belief that overriding the jargon in favour of simplicity is usually a good idea. As an author, he also believes in showing the big picture as far as possible before getting into intricate details which may not be necessary for someone learning something for the first time.
Related products with free delivery on eligible orders
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
- 5 out of 5 stars
Delivery and book info.
Reviewed in the United States on April 3, 2026Book is in excellent condition. It was a good price and arrived promptly. It is an enjoyable book. Thank you.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
If you are into science, engineering, etc., this is for you!
Reviewed in the United States on October 14, 2016I don't always give 5 stars, but when I do, it's for real. Stay coding my friends! Actually, I'm only about half way through the book, but I felt I had to do the review now. After dumping MicroShaft and getting into Linux, I could no longer use VisualBASIC; I had to choose another language and it came down to "C" or Python. I chose Python because I wanted to do some real work without trudging through a 3 year learning curve. Python is, as they say, easy to pick up, especially if you have prior coding experience.
You should know the basic Python syntax and structure, basic commands etc., before starting this book; it isn't a "beginners 1st Python" book. But one or two of the "24 hour" or "1 day" starter books will be sufficient. Also, this book is intended for people who want to get into serious math and graphics. If you are into science, engineering, etc., this is for you.
VERY well written and laid out; also, it isn't a big scary 600 page monster that might be intimidating to pick up and start - it's only 200 pages and there is no wasted space. A lot is said in minimal volume (I always like that). You will continue to learn Python as you proceed; also you will learn about math, graphics, and some physics as well. Most important - you will see how you can use Python to solve real world math problems and apply this to whatever you are doing.
It starts out simple with basic math functions, then rapidly progresses to graphing equations, then statistics; later on complex graphics (fractals - my thing), and calculus. Right now this is brain workout and fun for me, but I hope to use it later for work. The book is very easy to follow as you move along. You should use an interactive python editor (like Idle3) rather than try to run from the command line, although you can do that if you want.
One thing you can do is copy all the code snippets [after understanding them <g> and perhaps modifying a little] and collect them all in a personal python module which you can then use forever. Also, as you run the code snippets and play with them as you proceed through the book, you can experiment and modify / run them on the spot – this is a good way to learn – to stamp it into your brain in a way you will remember.
Fairly early in the book is a function which calculates and then graphically plots the trajectory of a thrown baseball; the technique is the same for any projectile. I was able to modify it a bit, put it in a loop, and graph the trajectory(s) for an object thrown at all angles from 0->90*. I was thus able to “prove” graphically something that is already well known – all other factors equal, a projectile will travel farthest when launched up at a 45* angle. Cool!
If you are in a science or engineering field and want to learn Python for that - I can't over-recommend this book!
Cheers.
62 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Very close to 5 stars.
Reviewed in the United States on November 8, 2020This book is best used by high school students as an adjunct to their math, statistics, and physics courses. It could also be used by other learners particularly self learners. The excercises are well thought out and the answers with code are downloadable. This is a wonderful feature, however, there will always be the risk that learners may be tempted to download the code before they try to write it themselves. It is nice to see the code for calculating mean, median, mode, and variance without just using Excel or SPSS and plugging your data in. The excercises in chapter 3 allow these statistical functions to be placed in a module which can be called subsequently. I would strongly recommend using Anaconda as it has the matplotlib and sympy modules easily called. I encountered major error codes when I tried using Pycharm with Python 3.9. These appear to be path errors which I was not able to fix. I was able to use Pycharm if I used Anaconda running with Python 3.8. The author has listed several errata which can be found through the publisher's website. Overall I have been enjoying the book. I remember in high school having to do the calculations by hand demonstrating Newton's law and the graphics of throwing projectiles. The scientific calculators were not available until my first year of college in 1972. I am only disappointed that more time is not spent on trigonometric functions and Fourier analysis. More time should also be spent on complex variables and Euler's function. All high school students contemplating engineering and physics majors in college would appreciate this. The appendix documenting installing Anaconda needs to be updated and the errata fixed in the next edition. Making the solutions and code for the excercises is wonderful. The author deserves our thanks for a nice publication.
11 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
I can do this
Reviewed in the United States on July 24, 2024This book will enhance low level coders, or beginners, whereas they will be able to move from crawling to walking.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
A good Book!
Reviewed in the United States on November 8, 2015A Very Good Book.
However, there are a few mistakes, to wit:
On page 12, the author states that if you put a space while inputting a complex number, Python will throw an error message. Not so!
Here it is:
Python 3.4.3 |Anaconda 2.3.0 (64-bit)| (default, Mar 6 2015, 12:06:10) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> a = 3 + 2j
>>> a
(3+2j)
>>> a.real
3.0
>>> a.imag
2.0
>>>
8 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
The Best of the Bunch
Reviewed in the United States on February 13, 2016Outstanding book. I am a retired psychologist with an abiding interest in all sciences (not to imply that psychology is really science). Having enjoyed programming my comodor 128 back in the day, I recently decided to teach myself python. What fun, and what a mind blower! The possibilities seem almost limitless. I bought a few introductory books. For me, "Doing Math..." is the most interesting, comprehensive, and useful. I love working with sympy and matplotlib. I hope Amit Saha will write more like it.
29 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Four Stars
Reviewed in the United States on April 27, 2017Good book, but need to be more detailed at some topics.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
very good
Reviewed in the United States on March 22, 2021starts at a low level then goes up to pick up everyone along the way. goes to quite sophisticated. pretty well explained. good examples given.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
Adam gottesman5 out of 5 starsGreat intro to Python for beginners!
Reviewed in the United Kingdom on January 11, 2021If you like Maths and would like to learn about the benefits of using computation to solve mathematical problems, reading this book is a good place to start. The level of mathematics, however, is not very high. Great for beginners but could be a bit dull if you're proficient in Maths.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Nabanita Das5 out of 5 starsGood book, is fun for beginners
Reviewed in India on March 6, 2025Title
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
luis carlos batista santos4 out of 5 starsPython
Reviewed in Brazil on June 4, 2016Excelente BOOK com linguagem clara e objetiva.
Com exemplos de matemática e estatística. Pandas e muito mais. Excelente livro. L
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Alessandro Bottoni4 out of 5 starsOttima introduzione al "nuovo latino"
Reviewed in Italy on July 25, 2016Quando la mia generazione si è affacciata sul mercato del lavoro, tra la fine degli anni '70 e la prima metà degli '80, era sufficiente conoscere un po' d'inglese per superare la file dei candidati e conquistare uno stipendio (stabile, sicuro, a tempo indeterminato). A quel tempo, l'inglese era il "nuovo latino" e faceva la differenza tra chi poteva ambire ad una carriera di alto livello e chi no. Ora l'inglese viene fatto trangugiare (da anni) a viva forza a tutti gli studenti, in tutte le scuole, di ogni tipo e di ogni livello, ed in molti cominciano a chiedersi quale sarà la disciplina che "farà la differenza" tra un candidato e l'altro nei prossimi anni.
La risposta è già nota da tempo tra gli addetti ai lavori: il "nuovo latino" del XXI secolo è la matematica (e soprattutto la cosiddetta "matematica applicata", cioè quel tipo di matematica che si usa per creare modelli di fenomeni naturali "complessi" e ragionare su di essi). Al giorno d'oggi, la capacità di utilizzare strumenti matematici nel proprio lavoro "fa la differenza" tra un candidato che può ambire a posizioni di alto livello e gli altri. Questo vale in tutte le "hard science" (fisica, ingegneria, chimica, farmaceutica, etc.) ed in molte delle "soft science" (biologia, medicina, sociologia, etc.).
Al giorno d'oggi, però, è sostanzialmente impossibile fare matematica applicata senza fare un uso intensivo dei computer e quindi diventa sempre più necessario saper usare almeno gli strumenti informatici più diffusi nel settore. Python è - in assoluto - il linguaggio di programmazione più diffuso, più utilizzato e più apprezzato nel settore tecnico e scientifico e quindi è la scelta più logica per chi intende seguire un percorso di studi di questo tipo.
Questo libro è una guida molto chiara, molto concisa e molto efficace all'uso di Python per il "modelling" di fenomeno fisici e naturali attraverso le consuete tecniche matematiche e statistiche. Non è un libro difficile. Anche se è destinato ad un pubblico di "undergraduate" (studenti universitari), in realtà è abbastanza comprensibile anche per chi sta frequentando gli ultimi due anni dei licei e degli istituti tecnici.
Il focus del libro è sulla implementazione in software di tecniche di rappresentazione matematica dei fenomeni fisici. Potrebbe sembrare che il tema centrale sia Python ma non è così. In realtà, la quantità di Python usata nel calcolo scientifico (e quindi in questo libro) è molto limitata. In pratica si usano solo i costrutti fondamentali del linguaggio (e quindi nessuna funzionalità "avanzata"). Questo perché non è la programmazione il vero "nuovo latino" in questo specifico contesto. Ciò che fa la differenza in questo contesto è il "modelling matematico" ed il libro si concentra su questo aspetto (anche se a livelli elementari).
Per riuscire a seguire il filo del discorso sono necessarie tre "capacità" o "competenze" di base: una buona conoscenza dell'inglese (e/o una buona capacità di aiutarsi con i dizionari e gli strumenti del web), una solida conoscenza della matematica e della fisica che si studiano al liceo e negli istituti tecnici (al livello degli ultimi due anni) ed un minimo di conoscenza di un qualunque linguaggio di programmazione. Dati questi presupposti, praticamente chiunque è in grado cavare da questo libro tutto quello che può dare (che è molto).
Il "premio" che si ottiene arrivando in fondo a questo libro (ed avendo svolto almeno una parte degli esercizi) è un biglietto d'ingresso nel XXI secolo e nella ristretta èlite rappresentata da quelle persone che, una volta laureate, potranno ambire ad un posto di lavoro decoroso, ben pagato e magari pure gratificante.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
jules boileau4 out of 5 starsNice beginner book with good coding explanation
Reviewed in Canada on March 29, 2017good for begineers and for people that want to jump fast in the coding. Nice entry in simple math level
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again












![Algebra 1 Workbook - 1,400+ Questions, Key Algebra Concepts and Practice: [Detailed Answer Explanations]](/web/20190509160520*/https://medium.com/@ddrogan/libertys-https-m.media-amazon.com/images/I/51qV6Qch9kL._AC_SR100,100_QL65_.jpg)


