As I found online that one has to add to load the cases package, but I'm not sure if I added this to the correct location.
After that I used this code on webpage:
\( f(n) = \begin{cases} n/2 & n \text{ is even} \\ 3n+1 & n \text{ is odd} \end{cases} \)
But alas, this doesn't work. I tried googling this and also searching in this forum, but for no avail. To note - I am using \( and \) to start and end a mathematical expression. This is what starts latex inside the html text.
Would very much appreciate you assistance!
After that I used this code on webpage:\( f(n) = \begin{cases} n/2 & n \text{ is even} \\ 3n+1 & n \text{ is odd} \end{cases} \)
$ f(n) = \begin{cases}
\frac{n}{2}, & \text{if $n$ is even} \\[2ex]
3n+1, & \text{if $n$ is odd}
\end{cases}
$
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/8c31a923-2649-472c-942b-23e235d40c6bn%40googlegroups.com.