In general, we can think of as a black box into which we feed a value of and out of which comes the value . We think of as the input, and as the output. The domain is the set of inputs, and the codomain is the set of all possible outputs; the range is set of actual outputs. The black box can be a calculator, a computer, or whatever.
The tangent function is
In calculus, we are mainly concerned with functions that depend upon a real variable , and such that takes real values; we normally make the domain as large as we can, and choose the co-domain to be By tradition, we write to indicate that the function is applied to the variable .