I need to know if there is any library out there that will allow me to, given a certain string representing a mathematical function, say, x^2+x+1, (don’t care about how the string format, any will work for me) generates a C# func that will represent said function.
I need to know if there is any library out there that will allow
Share
Been using FLEE (Fast Lightweight Expression Evaluator) for a while now and it’s been working great. They have a version that maintains most functionality for Silverlight as well. It’s designed to do pretty much exactly what you’re asking for and more.
http://flee.codeplex.com/
Given your example from your comment to evaluate
x^2+x+1(written in Notepad):