ApiM·12 年前·議論The complete book is available as HTML with interactive Processing.js examples here: http://natureofcode.com/book/
ApiM·12 年前·議論The Nature of Code by Daniel Shiffman is a free (pay what you want) open source ebook about simulating natural systems.The first five chapters are about physical systems like this pendulum while the remaining chapters are mostly AI related.The book use Processing but the concepts are language agnostic: http://natureofcode.com/book/