35 Int_t num =
f->GetNumber();
41 Error(
"TF1::AnalyticalIntegral",
"Invalid formula number - return a NaN");
47 result = ( exp(p[0]+p[1]*
xmax) - exp(p[0]+p[1]*
xmin))/p[1];
88 else if (num >= 300 && num < 400)
91 for (
int i=0;i<
n+1;i++)
93 result += p[i]/(i+1)*(std::pow(
xmax,i+1)-std::pow(
xmin,i+1));
Double_t AnalyticalIntegral(TF1 *f, Double_t a, Double_t b)
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
double crystalball_integral(double x, double alpha, double n, double sigma, double x0=0)
Integral of the not-normalized Crystal Ball function.
double landau_cdf(double x, double xi=1, double x0=0)
Cumulative distribution function of the Landau distribution (lower tail).
double gaussian_cdf(double x, double sigma=1, double x0=0)
Alternative name for same function.
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754