double y(double x,double a){ if(x==a||x==-a) return 0; else if(x>-a&&x return sqrt(a*a-x*x); else return 5*x;}