rule for function table

Christa's mom

New member
Joined
Mar 16, 2006
Messages
1
Can you help me with this one?
find the rule for each function table
INPUT (x) OUTPUT
-2 4
1 1
4 16
 
Christa's mom said:
find the rule...
"The" rule? Like there's only one?

The statement of the question implies that the text has something in mind, but we can't tell what that is. What sorts of functions (or modelling techniques, or regressions, or whatever) have been covered recently in class? What sorts of methods are you supposed to use?

Please reply with specifics, including what you have tried thus far.

Thank you.

Eliz.
 
Christa's mom said:
Can you help me with this one?
find the rule for each function table
INPUT (x) OUTPUT
-2 4
1 1
4 16
The "input" column increases by 3: -2 + 3 = 1 + 3 = 4

The "output" column is the "input" column squared:
-2^2 = 4
1^2 = 1
4^2 = 16

So to create output (Basic program):

100 get n 'size of output array desired
110 dim O(n) 'set up array to store Outputs
120 a = -2
130 for L = 1 to n 'do n Loops
140 O(L) = a^2
150 print L, a, O(L)
160 a = a + 3
170 next L

Printing:
Code:
L    a    O(L)
1   -2      4
2    1      1
3    4     16
4    7     49
5   10    100
...and so on
 
Top