Hello!
Is there a way to calculate a string expression with mathematical functions using C # ( without using third-party solutions and libraries )?
An example of counting a string expression with mathematical functions:
string test_s_expression = "5 + sin(0.1 * 8) - cos(0.5 - (3/4))"; ExpressionEvaluator EE = new ExpressionEvaluator(); float results = EE.Eval(test_s_expression);
PS I’m doing an iOS app on the Unity engine, so when I’m running on iOS, the code should work.