The value of $g'\left(\frac{1}{2}\right)$ is\\ (A) $\frac{\pi}{2}$\\ (B) $\pi$\\ (C) $-\frac{\pi}{2}$\\ (D) 0