<Orum>
anyone know a fast(er) way to approximate this function? It only needs to work for 0 <= x <= 1 (though a and q could be anything): https://www.desmos.com/calculator/w1syvegcnq
<Orum>
err, actually, 'a' will always be positive, and 0 <= q <= 1
Daz has joined #kspmodders
<r4m0n>
bit too flexible function, don't think you'll get it much simpler. it isn't that much expensive anyway. if you really need to call it thousands of times and it's slowing you down, I'd "cache" the results for a set of parameters (set $a and $q, store result for 10~100 steps of $x). then interpolate or use the cached results directly
<r4m0n>
big tables of numbers make any calculation fast
<Orum>
yeah, I suppose as long as I keep it small and linearly interpolate between or just round to the nearest it'll be fine
Supernovy has quit [Quit: Goodnight.]
GlassYuri has joined #kspmodders
angavrilov|phone has quit [Ping timeout: 202 seconds]
angavrilov|phone has joined #kspmodders
m4v has quit [Ping timeout: 194 seconds]
m4v has joined #kspmodders
m4v has quit [Ping timeout: 194 seconds]
m4v has joined #kspmodders
Orum has quit [Read error: Connection reset by peer]
GlassFragments has joined #kspmodders
GlassYuri has quit [Read error: Connection reset by peer]
angavrilov||phone has joined #kspmodders
angavrilov|phone has quit [Ping timeout: 182 seconds]
Iskierka has quit [Ping timeout: 202 seconds]
Iskierka has joined #kspmodders
angavrilov|phone has joined #kspmodders
angavrilov||phone has quit [Ping timeout: 182 seconds]