F
frankh
Got earlier very valuable feedback from this group, so I am trying
again.
Given a string with an arithmetic expression containing variables, e.g.
"a+b*sin(x)", how can I calculate its value within my program for given
variable values? (Think of the string as a user input.) Is there an
easier way than writing an interpreter myself? Mathematical notation is
preferred, but C# syntax ("Sin" instead of "sin") would be acceptable
too.
again.
Given a string with an arithmetic expression containing variables, e.g.
"a+b*sin(x)", how can I calculate its value within my program for given
variable values? (Think of the string as a user input.) Is there an
easier way than writing an interpreter myself? Mathematical notation is
preferred, but C# syntax ("Sin" instead of "sin") would be acceptable
too.