is there any way to calculate the values of the partial derivates of a function in c, which is unknown so far? I read here: Compute a derivative using discrete methods about how to implement the derivate, which is only possible when I know exactly the function f(x) with x=(x0,x1,...,xn). But what, if I want to pass the function f(x) as parameter, is this somehow possible? I imagine that not because I would need to somehow parse the string (must be passed as string obviously, like 'x0*exp(x1)*ln(x2*x1)')!? thanks so far!
edit: My question isn't about how to pass a function as a pointer in c, but about how to evaluate a mathematical function which is e.g. entered by the user as string.