Extracting and returning parameters from const double x[2] argument.