I want to fill a range between two values, not linearly but exponentially. For this I use a starting value L take exponent R, and repeat for N number of steps.
L = 1e-7
R = 0.9997 # needs solving
N = 1000
for _ in range(N):
L = L ** R
>>> L
6.523-06
Need to solve for R such that end value of L after N repeats is 1e-05.
Edit: This is not the same question as suggested. In the linked question the formula linked is $
f(x) = a \times r^s.$ For my question, the formula is different:
$L[t] = L[t-1]^R$ where t is a recursion step with maximum steps N.
**is exponentiation. This is not a programmer forum. – Thomas Andrews Mar 20 '24 at 22:23