Skip to Content
Math Adventures with Python
book

Math Adventures with Python

by Peter Farrell
January 2019
Intermediate to advanced content levelIntermediate to advanced
304 pages
7h 4m
English
No Starch Press

Overview

Math Adventures with Python will show you how to harness the power of programming to keep math relevant and fun. With the aid of the Python programming language, you’ll learn how to visualize solutions to a range of math problems as you use code to explore key mathematical concepts like algebra, trigonometry, matrices, and cellular automata.

Once you’ve learned the programming basics like loops and variables, you’ll write your own programs to solve equations quickly, make cool things like an interactive rainbow grid, and automate tedious tasks like factoring numbers and finding square roots. You’ll learn how to write functions to draw and manipulate shapes, create oscillating sine waves, and solve equations graphically.

You’ll also learn how to:

•Draw and transform 2D and 3D graphics with matrices

•Make colorful designs like the Mandelbrot and Julia sets with complex numbers

•Use recursion to create fractals like the Koch snowflake and the Sierpinski triangle

•Generate virtual sheep that graze on grass and multiply autonomously

•Crack secret codes using genetic algorithms

As you work through the book’s numerous examples and increasingly challenging exercises, you’ll code your own solutions, create beautiful visualizations, and see just how much more fun math can be!

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Doing Math with Python

Doing Math with Python

Amit Saha
Master Math by Coding in Python

Master Math by Coding in Python

Codestars By Rob Percival, Mike X Cohen
Math for Deep Learning

Math for Deep Learning

Ronald T. Kneusel
Python for Programmers

Python for Programmers

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781492071228