I'm trying to write a piecewise function in markdown on jupyter and jupyter is being spooky. Out of three functions, it only displays one properly (the $n_o$ one), even though they are all written in the same manner.
Is there a more elegant way to write this up?
$$ N(a)= \left\{
\begin{array}{ll}
n_o & A>A_{krit} \\
n_o+2 & A=A_{krit} \\
n_o+4 & A<A_{krit} \\
\end{array}
\right, $$
gdje je: $$A=\frac{1}{|a|},$$
$$ A_{krit}(a)= \left\{
\begin{array}{ll}
\frac{\sin(2\pi*floor(\frac{|a|}{2*\pi})+\frac{\pi}{2})}{2\pi*floor(\frac{|a|}{2*\pi})+\frac{\pi}{2}} & a>0 \\
\frac{\sin(2\pi*floor(\frac{|a|}{2*\pi})+\frac{3\pi}{2})}{2\pi*floor(\frac{|a|}{2*\pi})+\frac{3\pi}{2}} & a<0\\
\end{array}
\right, $$ i
$$ n_o(a)= \left\{
\begin{array}{ll}
|floor(\frac{|a|}{2*\pi})-1| & a>2\pi \\
|floor(\frac{|a|}{2*\pi})-1|-2 & 0<a<2\pi \land A\leq A_{krit} \\
floor(\frac{|a|}{2*\pi})+1 & a<0 \\
\end{array}
\right. $$