double fastBellDeriv(double x) { var x2 = x * x; if (x2 <= 0.25) return -4 * x; return -1 / (4 * x2 * x); }