Simplifying and evaluating mathematical strings [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 14 days ago . What would be the simplest way to evaluate/simplify a mathematical string in VB ? For example: "k*k+(5+2*5)k+k" would simplify to "k^2+15k+k" and "5^2+3" would evaluate to 28 . To evaluate, I'm using NCalc by simply using the evaluate function, but it doesn't simplify expressions.