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

Related posts

Feature

No Starch Press

Description

Doing Math with Python shows you how to use Python to delve into high schoollevel math topics like statistics, geometry, probability, and calculus. Youll start with simple projects, like a factoring program and a quadratic-equation solver, and then create more complex projects once youve gotten the hang of things.

Along the way, youll discover new ways to explore math and gain valuable programming skills that youll 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 Pythons 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. Youll write an inequality solver, plot gravitys 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 youre interested in math but have yet to dip into programming or youre a teacher looking to bring programming into the classroom, youll find that Python makes programming easy and practical. Let Python handle the grunt work while you focus on the math.

Uses Python 3