double calc(double t) { final t2 = t * t; final t3 = t2 * t; return c0 + c1 * t + c2 * t2 + c3 * t3; }