Hi,
I always face difficulty in writing the code with built function. Here is an example which I tried to calculate the CDF. Is there any any to solve my problem?
{
double x = 1.5;
double a = 2.0;
double b = 5.2;
double p = double ROOT::Math::beta_cdf_c (x, a, b);
double y = double ROOT::Math::binomial_cdf(unsigned int k = 5, double p1 = 5.0, unsigned int n= 100);
cout <<" p: " << p << endl;
cout <<" y: " << y << endl;
}
I tried both both way and get error on both.
Thank you
Kanhaiya Gupta
root [11] .x n.C
Error: Invalid type ‘unsigned’ in declaration of ‘int k’ n.C:8:
Error: Invalid type ‘double’ in declaration of ‘p1’ n.C:8:
Error: Invalid type ‘unsigned’ in declaration of ‘int n’ n.C:8:
*** Interpreter error recovered ***