Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900