Dear Experts,
I would like to obtain numerically a second/double integral with ROOT but not sure how to go about this. To elaborate, suppose I had a TF1
or double
-valued function
f(x) = x
and wanted the second integral over the domain [0,1]. The result would be
Int dx’ [Int dx f(x)] = 1/6
I do not want an analytical result, only a number in the end. Since what I want implicitly involves indefinite integration, I suspect that it might not be possible, but maybe I am just not seeing something obvious that involves ROOT::Math::Functor1D
and ROOT:::Math::Integrator
Any thoughts or suggestions would be deeply appreciated!
Best,
Richard
Please read tips for efficient and successful posting and posting code
_ROOT Version:6.22/06
_Platform: Ubuntu 20.04 (LTS)