Link to home
Start Free TrialLog in
Avatar of secret_wind
secret_wind

asked on

Converting Textbox.Text that contains Math Formula to a Math Formule and Use Input Arguments for the Functions.

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 ...
Regards,

ASKER CERTIFIED SOLUTION
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial