We usually think of a function as something that takes a numerical input and yields a numerical output. But that idea just scratches of the surface. First, inputs and outputs don't have to be numbers, they can be any computer entity whatsoever. Secondly, a function doesn't have to operate on a single input, but can be defined to deal with multiple inputs. In this worksheet we look at just a few ideas that will expand your horizon as far as functions go.
We look at a few different instances of functions that show up. The first is what is called a symbolic function--one in which we give it a name but haven't defined what it does. I will create the function called fnc whose input variable is just x.
Now I will work with some more familiar functions. Here comes several simple examples.
The straight line
The quadratic function,
Now a function of 2 variables that will compute the area of a triangle.
Precalc tells us we can add functions together. sage knows this. . .