I have to write a program that must take an equation from user and then give the answer .
for example it must take --> ( cosx+1-x=0 ) then give the answer --> 1.2786 .
I know how to reach the answer but
I dont know how to get the equation . if I put it in a string then what I must do to tell to the program that the string is a math formula and for example ---> c o s x is cos x and .....?
hope I could tell my meaning well .