I'm a computer programmer by profession with no formal CS education. When I read in mathematics the terminology used around a function, I get confused. For example, I was reading up on some calc and read this: As a function of time.
Or the following statement:
"In science, engineering, technology, finance, and other areas, graphs are tools used for many purposes. In the simplest case one variable is plotted as a function of another, typically using rectangular axes"
What does this example As a function of time actually mean for a programmer? Is t the parameter of a method? What would be the return value? Any simple examples to bridge this gap of confusion.
If you go in your car and move at a speed of $60$ mph then you can express the distance you travel "as a function of time". Written in mathematical terms $f(t)=60 \cdot t.$ So, $f(0)=0,$ which means in $0$ hours you move $0$ miles; $f(2)=120,$ which means in $2$ hours you move $120$ miles.