Using f(x) = 1/x in JavaScript
<p>Every millisecond, variable <em>light</em> is incremented by one until it reaches 1/3rd of variable <em>universe</em>, or until it's 3 times the variable <em>matter</em>.</p>

<pre><code>if (light &lt; (universe * (1/3)) || light &lt; matter * 3 &amp;&amp; light &lt;= universe) {
        light++;
    }
</code></pre>

<p>Instead, I want light to increase slower the closer it gets to the top,<br>
(<em>1/3rd universe</em> or <em>3 * matter</em>)<br>
like <a href="http://zonalandeducation.com/mmts/functionInstitute/rationalFunctions/oneOverX/pic1.gif" rel="nofollow">this picture</a> ( <em>f(x) = 1/x</em> ).</p>

<p>How do I do this?</p>