0

Hi to all,

I'm solving some numerical analiyse problems in C#.

Is there any C# implemented function similar to eval() in Matlab?

So, user type the function that he wants to evaluate in text box, and

eval(String s, double x) evaluate value of that function with argument x.

For example, if user wants to evaluate function y=x*x+6*x+12+sin(90) for x=6,

eval("sin(x)+x*x+6*x+12", 6) returns double value of result of this function - 85.

I appreciate any kind of help.

Thanks in advance