lozina
Lifer
I have a list of numbers that are the product of some function/formula:
60 45 38 35 32 30 28 27 26 25 25 24 23 23 22
How can I develop a formula which results in these numbers?
I plugged them into excel and created a chart, added trend line and played with the different types - I guess the log function looked the closest, and also had it show me the resulting formula:
y = 12.88ln(x) + 5.1763
I guess it works but I cant imagine the game engine (this is for a game BTW) using such a formula for this....
I am guessing more it is like 60 is the base number, and then it is modified with a malus/subtraction each iteration, which is strong at first but gets weaker (like a log function).
So I am imaging something like
y = 60 - f(x)
where f(x) is some sort of log function.
I wish I was good at math...
[edit] also I think the same function would need to result in the following values as well:
40 28 23 20 17 16 15 14 13 12 12 11 11 10 10
25 17 14 12 11 10 9 8 8 7 7 7 6 6 6
where I believe their base numbers would be 40 and 25 (the first numbers)
and of course the number is most definitely the result of rounding
60 45 38 35 32 30 28 27 26 25 25 24 23 23 22
How can I develop a formula which results in these numbers?
I plugged them into excel and created a chart, added trend line and played with the different types - I guess the log function looked the closest, and also had it show me the resulting formula:
y = 12.88ln(x) + 5.1763
I guess it works but I cant imagine the game engine (this is for a game BTW) using such a formula for this....
I am guessing more it is like 60 is the base number, and then it is modified with a malus/subtraction each iteration, which is strong at first but gets weaker (like a log function).
So I am imaging something like
y = 60 - f(x)
where f(x) is some sort of log function.
I wish I was good at math...
[edit] also I think the same function would need to result in the following values as well:
40 28 23 20 17 16 15 14 13 12 12 11 11 10 10
25 17 14 12 11 10 9 8 8 7 7 7 6 6 6
where I believe their base numbers would be 40 and 25 (the first numbers)
and of course the number is most definitely the result of rounding
Last edited: