I have written a bisection solver with a function name as argument and that function has only one argument:
double Bisection(double(*func)(double), double xLower, double xUpper, double xEPS = 1e-9, double yEPS = 1e-9);
Now I want to apply this solver in a Beta inverse cumulative probability function where the CDF is already known. But this CDF has three argument where the last two arguments are known:
double CDF(double x, double alpha, double beta)
How should I use this CDF as an argument of the solver by reducing the number of arguments?