const double M_SQRT1_2 = sqrt(0.5);
double normalCFD(double value)
{
return 0.5 * erfc(-value * M_SQRT1_2);
double normalCFD(double value)
{
return 0.5 * erfc(-value * M_SQRT1_2);
}
Q(value)=1-double normalCFD(value);or
const double M_SQRT1_2 = sqrt(0.5);
double normalCFD(double value)
{
return 0.5 * erfc(-value * M_SQRT1_2); // fai(x)
}
double qfunc(double value)
{
return 0.5 * erfc(value * M_SQRT1_2); // Q(x) only "-"
}