double p = Math.sqrt(Math.exp(2 * x + b));double q = 1.7 * Math.cos(c * x);double r = Math.log(x * x + a);double s = x * x * x;double y = (p - q) / r + s;