Chapter 15. Simulation

Simulation is an area where computers have come into their own. A simulation is a computer experiment that mirrors some aspect of the real world that either appears to be based on random processes or is too complicated to be properly understood. (Whether events can be truly random is actually a philosophical or theological question.) Some examples are radioactive decay, rolling dice, bacteria division, and traffic flow. The essence of a simulation program is that the programmer is unable to predict beforehand exactly what an outcome will be, which is true of the event being simulated. For example, when you flip a coin, you do not know for ...

Get Essential MATLAB for Engineers and Scientists Fourth Edition now with O’Reilly online learning.

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