Convert equation string to equation
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10857726/running-an-equation-with-javascript-from-a-text-field">Running an equation with Javascript from a text field</a>  </p>
</blockquote>



<p>How can I convert the following:</p>

<pre><code>var n = "2x^3+3x+6";
</code></pre>

<p>To</p>

<pre><code>var x = a number
var n = 2x^3+3x+6;
</code></pre>

<p>In JavaScript?</p>
