Lesson
Function |
||
What is a function? You may be
thinking of something like |
||
|
(1) | |
that you learned in your algebra class. In fact, this is a good example of math function that we will study later. In general, function is a black box which is promised to do specific task(s), each and every time we ask it to do. We call it black because we really dont care how it does, as long as it does as promised. You give something to the black box as input, and it returns the result as output, as shown by the schematic function diagram in figure 1. |
||
|
||
Figure 1. Function |
||
|
||
|
||
Figure 2. Washing machine |
||