Game Development Reference
In-Depth Information
opening and closing parentheses to identify the value to use with the equation.
You read the expression
f
(
x
)as''
f
of
x.
'' To indicate that you are expressing a
given equation as a function, you can use the equal sign to associate the function
notation with the equation. Here's an example:
f ðxÞ¼
3
x þ
2
In this case,
f
(
x
) becomes a way of saying 3(x)
þ
2. You then employ the
function notation to designate that you are generating a
y
(or range) value using
the function. A table of values proves convenient as a way to organize your
operations. Given a table of generated values, you can then create a graphical
representation of the line, as Figure 4.14 illustrates.
Figure 4.14
Function notation allows you to conveniently display work and generate tables of values to use in
creating graphs.