I suppose there are differentiable almost everywhere functions whose sets of discontinuities are dense. How to prove or disprove it?
Additionally, is Thomae's function $T(x)$ raised to some power greater than 2 an example? (With 2 it isn't differentiable anywhere by Hurwitz's theorem.) Or maybe $\begin{cases} e^{-\frac 1 {T(x)}} & \textrm{if $x\in\mathbb Q$} \\ 0 & \textrm{otherwise} \end{cases}$?