Is there a symbol for order?
...the exponent, ei , is called the order of pi in a, denoted ordpi (a) = ei .
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityFrom your comment it became clear that you were looking for the order operator.
In case somebody finds this question but is looking for the order (of magnitude):
\documentclass{article}
\DeclareRobustCommand{\orderof}{\ensuremath{\mathcal{O}}}
\begin{document}
$\orderof\left( 1234\right) =10^{3}$
\end{document}
\mathcal{O}
exists. But when you want to use "small oh", there are already several possible solutions at \mathcal(O) and font size.
I assume you're not looking for a certain symbol, but rather the operator ord
, as found on the top of page 7 of the Mark Siggers' Cryptography Class notes. You can define your own operators using amsmath
's \DeclareMathOperator
:
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\ord}{ord}
\begin{document}
\ldots the exponent, $e_i$, is called the order of $p_i$ in $a$, denoted $\ord_{p_i}(a)=e_i$.
\end{document}
\DeclareMathOperator
makes sure that the spacing around the operator is correct (try typesetting $x \ord y$
with the two different approaches). LaTeX doesn't work directly on this site (it's a screenshot). It does on sister sites like math.stackexchange.com, but we mainly need to show LaTeX code, so rendering it would not be very helpful.
`
to mark your inline code in comments as well as in answers. I'm wondering if we should make this question a bit more specific and widely-applicable by changing the title to "Is there a math operator for 'order' or how can I define it?" -- whaddya think?$\mathcal{O}$
symbol, which is generally used to write as "order of ...".\mathcal{O}
symbol, as he explained in the comment to my answer. Also, Stephen already included\mathcal{O}
in his answer.