entering a string to be used as a formula , in c#
<p>I've found the shunting yard algorithm, but  it feels like case is a little bit different.
What if the formula your entering has variables that you want to use in another formula</p>

<p>you enter </p>

<pre><code>cout&lt;&lt;"enter string"&lt;&lt;endl;
cin&gt;&gt;f;
</code></pre>

<p>and you enter f as </p>

<pre><code>3 * (X*X) + 2*X + 7 
</code></pre>

<p>and you use that <strong>string</strong> and parse it to find the root, for example.</p>
