Finding the derivative of arrays of number

I’m currently trying to find a derivative of arrays of number that consist of float numbers, is there any possible way to go about this in root?

e.g Float_t current[n] = {0.1315,0.23,0.5317,0.8374, 1.0021, 1.2021};

How can I get the derivative of the above array.

I’m not sure I understand what you’re asking for, but maybe @moneta can help you…

I moved this to the general ROOT forum, as it doesn’t have to do with RooFit or RooStats.

There is no way to compute a derivative of just a couple of numbers. That’s only possible if there is a function that is differentiable. So unless you know a function that should contain all these numbers in its value range, there cannot be a derivative.

1 Like

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