double F(double x) {
if (x < 0)
return 0.1 * x + 0.6;
else if (x > 2)
return Math.Sin(x) - 3;
return Math.Pow(4, x) + 2;
}
double F(double x) {
if (x < 0)
return 0.1 * x + 0.6;
else if (x > 2)
return Math.Sin(x) - 3;
return Math.Pow(4, x) + 2;
}