Type Here to Get Search Results !

# Math Adventures with Python Free PDF

Learn math by getting creative with code! Use the Python programming language to transform learning high school-level math topics like algebra, geometry, trigonometry, and calculus!

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!

## WHAT’S IN THIS BOOK?

This book begins with three chapters that cover basic Python concepts you’ll build on to

explore more complicated math. The next nine chapters explore math concepts and

problems that you can visualize and solve using Python and Processing. You can try the

exercises peppered throughout the book to apply what you learned and challenge

yourself.

Chapter 1: Drawing Polygons with Turtles teaches basic programming concepts like

loops, variables, and functions using Python’s built-in turtlemodule.

Chapter 2: Making Tedious Arithmetic Fun with Lists and Loops goes deeper into

programming concepts like lists and Booleans.

Chapter 3: Guessing and Checking with Conditionals applies your growing Python

skills to problems like factoring numbers and making an interactive number-guessing

game.

Chapter 4: Transforming and Storing Numbers with Algebra ramps up from solving

simple equations to solving cubic equations numerically and by graphing.

Chapter 5: Transforming Shapes with Geometry shows you how to create shapes and

then multiply, rotate, and spread them all over the screen.

Chapter 6: Creating Oscillations with Trigonometry goes beyond right triangles and

lets you create oscillating shapes and waves.

Chapter 7: Complex Numbers teaches you how to use complex numbers to move points

around the screen, creating designs like the Mandelbrot set.

Chapter 8: Using Matrices for Computer Graphics and Systems of Equations takes

you into the third dimension, where you’ll translate and rotate 3D shapes and solve huge

systems of equations with one program.

Chapter 9: Building Objects with Classes covers how to create one object, or as many as

your computer can handle, with roaming sheep and delicious grass locked in a battle for

survival.

Chapter 10: Creating Fractals Using Recursion shows how recursion can be used as a

whole new way to measure distances and create wildly unexpected designs.

Chapter 11: Cellular Automata teaches you how to generate and program cellular

automata to behave according to rules you make.

Chapter 12: Solving Problems Using Genetic Algorithms shows you how to harness

the theory of natural selection to solve problems we couldn’t solve in a million years

otherwise!

Year:          2019

Publisher:  No Starch Press

Language: English

Pages:       304 / 347

File:          PDF, 17.42 MB