title: How would I implement this inverse exponential in lua?
body: <pre><code>11 -&gt; 3
  10 -&gt; 3.1
  9 -&gt; 3.333
  8 -&gt; 3.5
  7 -&gt; 3.7142857142857
  6 -&gt; 4
  5 -&gt; 4.4
  4 -&gt; 5
  3 -&gt; 5.666
  2 -&gt; 7
  1 -&gt; 10
  </code></pre>
  
  <p>Basically I'm trying to reverse engineer a function for calculating Xp awarded to a player. The first number is what you feed into the function, while the second number is what it returns. After visualizing the returned numbers I figured out that they're an inverse exponential, but I've had no luck in implementing them in lua.</p>