How can I get value of x
from string equation using c#.
string eq = sin(x) = 5x-2""
eq = "x=(1/5)*(sin(x)+2)"
Is it even possible?
Poor quality question aside, what you want is either to create your expression parser which will then either compile or interpret the expression, OR you could use an open source library like NCalc:
This is built to do this sort of thing.