Let $S=\{\theta\in[0,2\pi):\ \tan(\pi\cos\theta)+\tan(\pi\sin\theta)=0\}$, then $\sum_{\theta\in S}\sin^{2}\left(\theta+\frac{\pi}{4}\right)$ is equal to
Numerical-value question: the answer is a number.
Show answer
The answer is 2.
Key from source paper