Responses to C, Python, C ++ or Javascript would be greatly appreciated. I read several books, made all the examples. Now I would like to write a simple program. But I have already encountered the following obstacle:
I intend to accept the equation from the user and store it in a variable, For example:
-3*X+4 or pow(2,(sin(cos(x))/5)) > [In valid C Math syntax]
And then compute the given expression for a specific X value. Something like this:
printf("%g", UserFunction(3.2)) // Input 3.2 for X in User Function and Print Result
Any ideas? For life, I cannot understand this. Adding to my disappointment, the solution is probably very simple. Thank you in advance.
c variables equation solver
user2388026
source share