I’ve been trying to create a database of equations that my windows form application will supply variables to and then calculate the solution. I was trying to store my equations in a text file and load them into a list but I haven’t been able to think of how to translate my equation from a string to an actual equation.
So, does anyone know how I could store and call on a collection of equations that use variables from my windows form application.
P.S. Please keep it simple or explain thing fully. I get confused easily.
Your best bet is to use a math library to evaluate your math expressions.
Here are some links to get you started:
https://stackoverflow.com/questions/1387430/recommended-math-library-for-c-net
You can also take a look in http://ncalc.codeplex.com/ that may be exaclty what you want.