I have a function of time $t$ described as $$f(t) = H(g(t) - 1)$$ where $$H(x)=\begin{cases} 0,& x<0\\1,&x\ge0\end{cases}$$ is the Heaviside step function and $g(t)$ is a continuous function.
Now, it want to have set $T$ that contains all the times at which a 0-to-1 or 1-to-0 transition occurs. Can I write that as:
$$T = \left\lbrace t \ \middle|\ \frac{\textrm{d} f(t)}{\textrm{d} t} \neq 0 \right\rbrace$$
or is there a better way?
I think the best way to describe this set for your readers is in words:
Any mathematical notation - even good notation - would have to be decoded to be understaood.
I assume you don't need any kind of formula in your code.