I have calculated an expression which depends on functions. I would now like to calculate the derivative withe respect to a function but when I try to do so I get the error “Deriving a functional ”Error, invalid input: diff received fA(r), which is not valid for its 2nd argument. There is no help page available for this error, so maybe someone knows what I am doing wrong .
I get this is because die diff function might not be able to handel a function as an argument, but how would I do it?
Download test_funtion.mw