CHAPTER 14

image

Numerical Integration Schemes, Accuracy, and Scaling

In the previous two parts of this book we have covered a lot of physics. In the process we have largely managed to avoid getting into complex numerical issues. In this chapter we will focus on the important subject of numerical integration schemes and considerations of numerical stability and accuracy. Because no new physics will be presented, there won’t be any new simulations in this chapter, but just some simple code examples to test the different schemes. At the end of the chapter we also include a short section on building scale models.

Numerical integration is a branch of numerical ...

Get Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.