Let $f:A\to B$ be defined as $f(x)=\frac{1}{2}-\tan\left(\frac{\pi x}{2}\right)$ and $g:B\to C$ be defined as $g(x)=\sqrt{3+4x-4x^{2}}$. If A, B, C are subsets of $\mathbb{R}$ and $f$ is an onto function then the range of the function $f(x)$ is
- A
$(-\infty,\infty)$
- B
$[0,\infty)$
- C
$\left[-\frac{1}{2},\frac{3}{2}\right]$
- D
$[-1,1]$