logarithmic formula for research

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

logarithmic formula for research

Post 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.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3724
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: logarithmic formula for research

Post 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.
User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: logarithmic formula for research

Post 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.
Genhis
Factorio Staff
Factorio Staff
Posts: 709
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: logarithmic formula for research

Post by Genhis »

Binary logarithm (log2(x) function) is implemented for 2.0.
Post Reply

Return to “Implemented mod requests”