i write atm a little programm for my math course.
something to determinate the min of a graph.
i use arguments.
the programm expecting a fuction, something like y= a*x^2+b*x +c (simple example).
instead of x^2 i would use x*x ofc)
now i have this function in a string, how can i calculate this math function ?
or how do i extract it out of the string ?
must it be a huge parser (nearly impossible, as a graph can contain many more arugments like sin/cos etc).
is there something like a eval() function in c ??
thx for help