Function tabulation is a classic math and programming problem. It consists in sequentially finding the quantity f (x) for varying values of x . The calculation results are most often displayed in a table of two rows. The first corresponds to x , the second to f (x) .
Theory
The algorithm for determining function values consists of six steps.
- The choice of the initial and final value of the argument, the number of points.
- The calculation of the step is the amount by which the argument will change.
- The argument is taken equal to the initial value.
- Function calculation.
- Increment argument by step value.
- Repeat steps 4–5 until the required number of points has been calculated.
, , , . , . , ( 6 ) .
, , . g(x) = x2 + 9. [–2; 2], . , 1.
, g(–2), «–2» – . x ( ) g, .
– .
– . , . – .
«». , , , . f(x) = 18 * x + 5. – x, f(x).
- := ..
- _ := (. – . ) / . .
- FOR ( := 0 . ).
:
- := 18 * + 5.
- := . + * .
- (, ).
.
. "", C+, C# VBA, MS Office.