Check out this latest Python programming language book from No Starch Press, to do with ‘hacking’ maths – Math Adventures with Python.
It’s written by Peter Farrell with the stated aim of “harnessing the power of programming to make maths learning more fun”.
For example, in the course of the book – published in softback and e-book formats – you can create 2D and 3D graphics with matrices and make colorful designs (via Mandelbrot and Julia sets) with complex numbers. Other topics include using recursion to create fractals, like the Koch snowflake and the Sierpinski triangle, and cracking secret codes using genetic algorithms.There’s even the generation of virtual sheep that graze on grass and multiply autonomously… The publishers write: 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. Sample The contents of Chapter 5 – Transforming Shapes with Geometry – can be downloaded for a sample. And you can see the full contents page online, too. Author The author of the book is Peter Farrell, a maths and computer science teacher, from the San Francisco Bay Area. The publishers describe him as having a passion for customizing (“hacking”) maths education and learning with technology. Math Adventures with Python details Title: Math Adventures with Python – An Illustrated Guide to Exploring Math with CodeAuthor: Peter FarrellPublisher: No Starch PressDate: January 2019ISBN: 978-1-59327-867-0Pages: 303Format: Paperback and e-book (PDF, Mobi, and ePub)Price: $29.95 and $23.95 (e-book)