double uscslsDeriv(double x) { if (x >= 1.6) return 0.065; if (x > -0.8) return -0.375 * x * x + 0.25 * x + 0.625; return 0.185; }