具体的公式是什么,提供一下才能解决
你别光发问题没有公式啊
float fun(float x) { if(x<=-5) return x*x+x-1; if(x>=5) return x+6; return pow(x,5); }