Hello!
I wish to define a function (a straight line y=k*x+m to begin with) where I need to define k and m outside the definition of the function, eg:
k=1;
m=1;
TF1 fun1 = new TF1(“fun1”,"kx+m",0,20);
Do I need to define a function (Double_t MyFunction() ) to do this?
Grateful for help!
Karin