Give an example of a continuous real-valued function $f$ form $[0,1]$ to $[0,1]$ which takes on every value in $[0,1]$ an infinite number of times.
My example goes like this: Take $f(x)=\lim_{n \to \infty} g(x)$ where. $$g(x)=\left\{\begin{array}{l} n x, \frac{k}{n} \leq x \leq \frac{k+1}{n} ; k \text { is even } \\ -n x, \frac{k}{n} \leq x \leq \frac{k+1}{n} ; k \text { is odd } \end{array}\right.$$ Does this work? I'm unable to verify.
begin{cases} [insert thing] \end{cases}
instead of trying to use left and right with no delimiter behind right. – Bruno B Nov 07 '23 at 10:41cases
environment instead of array. If you simply followed the link I provided you would easily find this: https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference/5025#5025 – 5xum Nov 07 '23 at 10:41