S
sunrise
Dynamic languages like Python and Ruby have eval() function which is
very handy when trying to evaluate a mathematical expression.
For example:
x = 90
puts eval(user_input)
imagine that user_input is "x+sin(x)" this will prints 91.
Is there something similar in C#, and if not, how hard would be to
implement it?
Thanks.
sunrise
very handy when trying to evaluate a mathematical expression.
For example:
x = 90
puts eval(user_input)
imagine that user_input is "x+sin(x)" this will prints 91.
Is there something similar in C#, and if not, how hard would be to
implement it?
Thanks.
sunrise