Sponsored
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy New
$34.99
FREE delivery Wednesday, June 24 on orders shipped by Amazon over $35
Ships from: Amazon.com
Sold by: Amazon.com
$34.99
Get Fast, Free Shipping with Amazon Prime
FREE delivery Wednesday, June 24 on orders shipped by Amazon over $35
Or Prime members get FREE delivery Sunday, June 21. Order within 6 hrs 50 mins. Join Prime
Arrives on Father's Day. Need a gift sooner? Send an Amazon Gift Card today by email or text message.
Only 15 left in stock (more on the way).
$$34.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$34.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$9.53
Pages are clean and are not marred by notes or folds of any kind. ~ ThriftBooks: Read More, Spend Less Pages are clean and are not marred by notes or folds of any kind. ~ ThriftBooks: Read More, Spend Less See less
FREE delivery June 29 - July 1. Details
Arrives after Father's Day. Need a gift sooner? Send an Amazon Gift Card today by email or text message.
In stock
$$34.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$34.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by ThriftBooks-Phoenix.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

  • Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More!

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More!

4.5 out of 5 stars (196)

{"desktop_buybox_group_1":[{"displayPrice":"$34.99","priceAmount":34.99,"currencySymbol":"$","integerValue":"34","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"5%2F2X3X1kmuhcpJWKW%2BQAtU6MSADLvEqnf2GNLHUyBJxCEdNeomGFthINmtpRY8Ga8%2BPJkQdvUy8rLDmOug%2FHnnCzyu6j6cyd1uZvsgfZ8XU8MV8KCBg2yNd1ja1o3AC5Vwzdsw%2BwMgssEcsu3y9r1g%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$9.53","priceAmount":9.53,"currencySymbol":"$","integerValue":"9","decimalSeparator":".","fractionalValue":"53","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"5%2F2X3X1kmuhcpJWKW%2BQAtU6MSADLvEqnOlR7RUOt%2BqdBjgME6QH04DD3OF9QsyRnPYtamsEXw%2B5oWRfH1Zedj27n%2FXucTZZQujvH4znQ3ip%2FfP4cpg7UYa8XPIM8fESuL8CDe8rAVRU79a212e%2BQBQiseoFuxLOu8so2xl2cd0Ayc8wb7V10s6JTbdWpnDq9","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

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:
–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
Sponsored

Customers also bought or read

Loading...

Editorial Reviews

Review

"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."
—School Library Journal

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).

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)
  • Customer Reviews:
    4.5 out of 5 stars (196)

About the author

Follow authors to get new release updates, plus improved recommendations.
Amit Saha
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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.

Sponsored

Customer reviews

4.5 out of 5 stars
196 global ratings
Sponsored

Top reviews from the United States

  • 5 out of 5 stars
    Delivery and book info.
    Reviewed in the United States on April 3, 2026
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Book is in excellent condition. It was a good price and arrived promptly. It is an enjoyable book. Thank you.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    If you are into science, engineering, etc., this is for you!
    Reviewed in the United States on October 14, 2016
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    Very close to 5 stars.
    Reviewed in the United States on November 8, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    I can do this
    Reviewed in the United States on July 24, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book will enhance low level coders, or beginners, whereas they will be able to move from crawling to walking.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    A good Book!
    Reviewed in the United States on November 8, 2015
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    A 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    The Best of the Bunch
    Reviewed in the United States on February 13, 2016
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Outstanding 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    Four Stars
    Reviewed in the United States on April 27, 2017
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Good book, but need to be more detailed at some topics.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    very good
    Reviewed in the United States on March 22, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    starts 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...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    Great intro to Python for beginners!
    Reviewed in the United Kingdom on January 11, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    If 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.
  • 5 out of 5 stars
    Good book, is fun for beginners
    Reviewed in India on March 6, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    Python
    Reviewed in Brazil on June 4, 2016
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Excelente 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.
    Translated from Portuguese by Amazon
    See original
  • 4 out of 5 stars
    Ottima introduzione al "nuovo latino"
    Reviewed in Italy on July 25, 2016
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Quando 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.
    Translated from Italian by Amazon
    See original
  • 4 out of 5 stars
    Nice beginner book with good coding explanation
    Reviewed in Canada on March 29, 2017
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    good 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.