If the function \(f(x)= \begin{cases}-2 \sin x & \text {, if } x \leq \frac{-\pi}{2} \\ A \sin x+B & , \text { if } \frac{-\pi}{2}< x<\frac{\pi}{2} \\ \cos x & , \text { if } x \geq \frac{\pi}{2}\end{cases}\) is continuous everywhere, then the values of \(A\) and \(B\) are respectively
If the function defined by
\(f(x)=\begin{cases} ax^{2}+bx+1, & |2x-3|\geq 2 \\ 3x+2, & \frac{1}{2}\lt x\lt \frac{5}{2} \end{cases}\)
is continuous in its domain, then the values of \(a\) and \(b\) respectively are