title: Rearranging Logarithm Form to Exponential Form
body: <p>I've got a series of logarithms used in a minecraft mod, and I'm designing a program that uses these logarithms to calculate operation time values for the machines within that mod. The problem I'm having is that I have to re-arrange approximately 30 logarithms into their exponential form. (I can do this by hand, but it would be much easier if I could get a program to do it for me)</p>
  
  <p>These logs are of the base 2, and here's an example one:</p>
  
  <pre><code>T = 900 - 60 * Log2(Speed + 1)
  </code></pre>
  
  <p>In code this would look like this:</p>
  
  <pre><code>T = 900 - 60 * Math.Log((Speed + 1), 2);
  </code></pre>
  
  <p>Of course, this formula can be put straight into C# using Math.Log (As above). However, the rearranged formula looks something like this:</p>
  
  <pre><code>2^((-900+T)/-60) - 1 = Speed
  </code></pre>
  
  <p>How would I go about creating a program that can convert between these two forms (Take the input as one of the logarithms, and the programs output would be the exponent form)? There is a Math.Exp method listed in the Math Library on MSDN (C#), however it deals with logarithms of the base e, not base 2.</p>
  
  <p>Note: T means ticks, there are 20 ticks in a second</p>
  
  <p>Note 2: All 30 of the Logarithms use a similar format to the listed one above, the only difference being the first two numbers (eg instead of 900 - 60, it might be 1200 - 60, or 480 - 35 and so on).</p>