contents

 

preface

acknowledgments

about this book

about the author

about the cover illustration

  

  1 Learning math with code

  1.1  Solving lucrative problems with math and software

Predicting financial market movements

Finding a good deal

Building 3D graphics and animations

Modeling the physical world

  1.2  How not to learn math

Jane wants to learn some math

Slogging through math textbooks

  1.3  Using your well-trained left brain

Using a formal language

Build your own calculator

Building abstractions with functions

Part 1. Vectors and graphics

  2  Drawing with 2D vectors

  2.1  Picturing 2D vectors

Representing 2D vectors

2D drawing in Python

Exercises

  2.2  Plane vector arithmetic

Vector components and lengths

Multiplying vectors by numbers

Subtraction, displacement, and distance

Exercises