Converting Textbox.Text that contains Math Formula to a Math Formule and Use Input Arguments for the Functions.
Posted on 2006-04-25
Hi dear Experts,
I have a serious problem and I need Urgent Answer .
I have a textbox that my user enters an C# Math formula like " Math.Cos(x) + 2 * x "
I need to have this text as a math function and pass the "x" argument to the formule in my function :
public double functionresult(double x1, string functions )
double x = x1 ; // this is my Argument
// I need to get that Textbox math Functions and return the whole expression's answer.
please help me in this case ...