Drawing a function obtained from a partial derivative at a given point

Hi,
The following task needed to be solved.

We have a function with two variables, for example

z(x,y)=x * x * y;

We calculate the the partial derivative of z with respect to the variable x, for example at the point x=1. Then we get a function with the y variable which is in our case f(y)=2*y.

How this algorithm can be performed by ROOT to draw f(y)?

Thank you in advance for any help you can provide!
Steven

An example for how to draw functions can be found in ${ROOTSYS}/tutorials/hist/logscales.C - that’s with log scales, but it shows you the pattern!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.