Manual application of the chain rule

Hi K. Frank,

Thanks very much for your suggestion. Meanwhile, I also came across another solution here which seems easier. Do you know if Variables are supported in C++?