Answer the question
In order to leave comments, you need to log in
How to convert string expression?
Given variables of type string
string y1 = "34*x^2+2*x+7";
string y2 = "x^17+1";
string y3 = "2*sin(13*x)";
string y4 = "ln(2x)"
//и т.д.
string y
can enter any expression in it, and from it I want to get a value at a point.
>Enter expression y = [*waiting for input expression]
>Enter x = [*input x]
>Value Expression at point X = [value expression at point]
Answer the question
In order to leave comments, you need to log in
I need a general solution
Enter expression y = [*waiting for input expression]
Enter x = [*input x]
Value Expression at point X = [value expression at point]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question