Answer

Take a look at our example program. In its original form, if we want to change the way that base two logarithms are computed, we have to search through the program and change it in three places. In the improved form, we need only change the log2 function. It is much easier figuring out what needs to change, and it is much easier to actually make the change.

Return to lesson.