Geometric Progression |
1 + 1/2 + 1/3 + 1/4....
Thats what some people have been after I believe when they have been talking about diminishing returns for upgrading facilities.
I'm just brain dead at 2am in the morning and I can't remember how to model this algabreically atm, so if someone has the formula for modeling a geometric progression we can be away with diminishing returns for upgrading them thar research centers.
Re: Geometric Progression
0.5+LN((2n+1)/2) to be exact
Which isn't quite a perfect model of that geometric progression but is damn close.
Now since I'm on my laptop I'm just not sure if you can use a Natural log function inside the Facilities file
0.5+Ln(((2*[%Level%])+1)/2) should do it, assuming you are basing it off of facility level.
From SE5_Modding.pdf:
Ln
(Val1: real): real
The Ln function returns the natural logarithm (Ln(e) = 1) of the real-type expression Val1.
Re: Geometric Progression
By the way, this is a great idea. Mind if I implement such a curve in my mod? Don't want to go around idea-stealing, but I've always liked the idea of diminishing returns...
Re: Geometric Progression
It's not clear to me how using basic mathematical constructs could be an issue with "idea-stealing."
Re: Geometric Progression
Considering one of the earliest (modern) economists to put the concept of diminishing marginal returns to paper died in 1781 I don't think you'll be stepping on too many toes.
It's a pillar of economic theory so if nothing else it sounds more realistic.




Re: Geometric Progression
*coughs and whimpers* Wouldn't you know it
That particular progression model works out best using a natural log formula
0.5+LN((2n+1)/2) to be exact
Which isn't quite a perfect model of that geometric progression but is damn close.
Now since I'm on my laptop I'm just not sure if you can use a Natural log function inside the Facilities file