Log-like functions

There are a number of function names and operation symbols that should be set in normal (roman) type in an expression, such as in

f (θ) = sinθ + log(θ +1) - sinh(θ2 + 1)

and

$\displaystyle \lim_{{h \rightarrow 0}}^{}$$\displaystyle {\frac{{\sin h}}{{h}}}$ = 1    .

We know that simply typing $log\theta$ would produce the incorrect result

logθ

and that using $\mbox{log}\theta$ would leave us having to insert a little extra space between the log and the θ

logθ    .

So LATEX provides a collection of ``log-like functions'' defined as control sequences. Table [*] shows those that are available. Here are some examples of their use:


Table: Log-like functions
arccos cos csc exp ker limsup min sinh
arcsin cosh deg gcd lg ln Pr sup
arctan cot det hom lim log sec tan
arg coth dim inf liminf max sin tanh


\begin{mathegs}
\verb@$f(x)=\sin x + \log(x^2)$@ & $f(x)=\sin x + \log(x^2)$\\
...
...infty} S_n = \gamma$@ & $\lim_{n \rightarrow \infty} S_n = \gamma$
\end{mathegs}

Notice how LATEX does more than just set an operation like sup in roman type. It also knew where a subscript to that operator should go.