title: how to convert a string to a mathematical expression programmatically
body: <p>I am a beginner at C#. I am facing a problem while converting a string to a mathematical expression. I have a UI where user can create formula using random formula field. And in another UI user will give input of those formula field.</p>
  
  <p>like for example at first time the formula may be <code>(a+b)^n</code> and another the formula may be <code>((a+b+c)^n+b)</code>.</p>
  
  <p>In my calculation UI for the first time user will give input for a,b,n and for 2nd formula user will give input for a,b,c,n. Can anyone please help me about how to get the result for both of the formula programmatic-ally? Thanks in advance</p>