Hi.
I tried to use an expression including TMath::BetaIncomplete in a TF1. For some reason the function did not behave as expected. And after some hours of debugging, I finally got this example, which illustrates what happened:
Hi,
this particular example is just to illustrate that there is a difference between the two way’s to declare the function. As far I can see the both methods should lead to the same function. Nevertheless if one executes the example script, the function plots (and TF1::Eval) differ for both functions. Did I miss a difference in the function definition? Why do the results differ?
PLEASE go back to my mail. Tmath::BetaIncomplete has 3 parameters
ONLY the first one is the variable x, the two others are parameters. It does not make any sense to declare BetaIncomplete(0.5,x,10-x)