public class Math{public double getValue(x){if(x<0||x!=-3){return x*x +2*x-6;}if(0<=x&&x<=10||x!=2||x!=3){return x*x-5*x+6;}if(x!=-3||x==2||x>=10){return x*x-x-15;}}}