|
| |
Function Graphs:
- what are mathematical functions y = f (x) ?
- given a value for x (argument) the
function returns a result.
- how can we write math functions in C++?
- just write the expression, but
- better yet, write a function that
returns a result!
- what are function graphs?
- illustration of values for x
(horizontal) and y (vertical).
- how can we draw function graphs?
- move a point with coordinates (x,
f(x));
- from an initial Xo to a final
Xn;
- draw points as close as
reasonable.
Example ball7.cpp (not in the book) , c5sin.cpp
Download ball7.cpp
|