Let f:R→R be difined as f(x)=⎧⎪ ⎪ ⎪ ⎪⎨⎪ ⎪ ⎪ ⎪⎩2sin(−πx2),if x<−1|ax2+x+b|,if −1≤x≤1sin(πx)if x>1. If f(x) is continuous on R, then a+b equals: