The remaining case, where `z[i] = 1 / (1 + exp(-x[i]))` (that could be computed with `z[i] = 1 / (1  + 1/z[i]))`) is missing.