ABSTRACT

Loops are a powerful way to reexecute large portions of code. We can use loops to calculate each time step of a simulation, or to step though the elements of an array or matrix to do element-wise calculations.