What I want to write is
if N+1 > N we do sigma (all the N) / the length of the array
For the greater sign I use
If N+1 \textgreater N
But it's shown like this
if N+1 >N
No space between the greater sign and N
And about sigma, I do \sum N / Length of the array
but doesn't seem right, the output is right but I get missing sign error
\textgreater
is for text. You should write$N+1>N$ do $\sigma N / \text{Length of the array}$
. Or if it is the sum, do$\sum_N^{\text{Length of the array}}$
, yes the last one wont be pretty. :)\text{}
(suggested by zeroth), you will need to add\usepackage{amsmath}
or\usepackage{amstext}
to the preamble of the document.