13

Mathematics

If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.

—John von Neumann

If you were cosine squared, I’d be sine squared, because together we’d be one.

—Anonymous

In this chapter:

 Modulus

 Probability

 Perlin noise

 The map() function

 Trigonometry

 Recursion

 Two-dimensional arrays

Here we are. The fundamentals are finished, and I am going to start looking at some more sophisticated topics in Processing. You may find there is less of a story to follow from chapter to chapter. Nonetheless, although the concepts do not necessarily build on each other as fluidly as they did previously, the chapters are ordered with a step-by-step learning approach in mind.

Everything I do from ...

Get Learning Processing, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.