How can I compute of the $2\pi$-periodic function whose restriction to the range $[-\pi,\pi]$ is:
$$ \begin{cases} 1 && 0 < x < \pi \\ 0 && -\pi < x < 0 \end{cases} $$
How can I compute of the $2\pi$-periodic function whose restriction to the range $[-\pi,\pi]$ is:
$$ \begin{cases} 1 && 0 < x < \pi \\ 0 && -\pi < x < 0 \end{cases} $$