[Tex/LaTex] ! Missing number, treated as zero. problem

errors

I just want to have the following simple equation. But the latex told me "! Missing number, treated as zero. problem" I have no idea what's going on here

\[L\mathaccent N(\mu ,{\sigma ^2})\]

Error message:

! Missing number, treated as zero.
to be read again,
N
l.245 \[L\mathaccent N
(\mu ,{\sigma ^2})\]

Kind Regards
SL

Best Answer

If I understand you just want ~ in your mathematical expression. But as it is interpreted by LaTeX to set an unbreakable space, you must type something like this :

\[L \sim N(\mu ,{\sigma ^2})\]