Page 1 of 1

logarithmic formula for research

Posted: Tue Apr 13, 2021 4:11 am
by ptx0
this is currently unsupported, i'm not sure of the syntax but was thinking a quick solution would be to allow y= at the beginning of the formula which would invert the x-y relationship and in effect, result in a logarithmic graph.

the problem i'm trying to solve is the extreme exponential cost of research as things go on and on, it becomes unachievable within a human lifespan. i want to have the option to cap the time it might take for the research levels at my given research rate.

Re: logarithmic formula for research

Posted: Tue Apr 13, 2021 7:26 am
by DaveMcW
Use square root, it is almost as slow as logarithm.

Code: Select all

count_formula = "(L^0.5)*1000"
If you really want a hard cap, just make a new infinite tech at level 100 with constant cost.

Re: logarithmic formula for research

Posted: Tue Apr 13, 2021 2:23 pm
by ptx0
Image

your suggested formula is not only insane, it doesn't asymptote.

having a logarithmic cost is not easily emulated with other curves. that's sort of why it's called logarithmic and not a fractional exponent. it's an inverse relationship between x and y values on the graph.

Re: logarithmic formula for research

Posted: Mon Jan 08, 2024 9:46 am
by Genhis
Binary logarithm (log2(x) function) is implemented for 2.0.