Piecewise-constant function with infinitely many pieces – mathematica.stackexchange.com

How can I define in Mathematica the following function: $$f(x)=\begin{cases} x-n,&\mbox{when $2n\le x\le 2n+1$,}\\n+1,&\mbox{when $2n+1\le x\le 2n+2$,}\end{cases}$$ where $n$ takes all ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Piecewise-constant function with infinitely many pieces – mathematica.stackexchange.com"