I'm trying to find out how some value is calculated in some strategy game. I know the variables that make that value, but not how they are combined to make it. So I gathered some samples:
- c=100 when a=32 and b=1
- c=7 when a=2 and b=1
- c=391 when a=32 and b=12
- c=781 when a=64 and b=12
c is the value I'm trying to find the formula of, and
b are the only variables in that formula (that are changing between sample to sample). What makes it all harder is that
c is rounded either up or down.
I guessed few formulas myself, none applied to all samples. Then I thought there must be a program that could let me enter these samples and estimate a formula for me, but not found such.
Am I in the right direction? is it even possible to do something with such samples?