What are (as easy as possible) examples of functions $f$ with the following properties?
- singular, i.e. continuous, non-constant, and differentiable almost everywhere with derivative zero,
- non locally constant, i.e. $\exists x$ with $f'(x)=0$ but $\forall U $neighborhood of $x$, $ \exists y∈U$ with $f(x)≠f(y)$.
Note that the above definition of non locally constant is unusual, but I don't know how to call this specific case.
Anyway, this is this case I ask for.