I need to write
$\sin\circ \theta \cos\circ \theta$
with correct horizontal spacing (here \theta denotes a real-valued function). How can I do that? Can you please explain me briefly why my code does not work fine?
Here is what I get
I need to write
$\sin\circ \theta \cos\circ \theta$
with correct horizontal spacing (here \theta denotes a real-valued function). How can I do that? Can you please explain me briefly why my code does not work fine?
Here is what I get
You should make \sin into an ordinary, for this case, so \circ will be surrounded by items compatible with its nature of binary operation.
Your code has the sequence Op Bin Ord and, by rule, the Bin (that is, \circ) becomes Ord.
\documentclass{article}
\usepackage{amsmath}
\newcommand{\fsin}{\mathord{\sin}}
\newcommand{\fcos}{\mathord{\cos}}
\begin{document}
\[
\fsin\circ \theta \qquad \fcos\circ \theta
\]
\end{document}
a\circ b c\circ d; I believe that (\fsin\circ\theta)(\fcos\circ\theta) would make your intentions clearer. Otherwise, add \, in between: \fsin\circ\theta\,\fcos\circ\theta.
– egreg
Jan 25 '18 at 11:28
\circis a binary relation, which of course has consequences on spacing (see this answer). But I'm not sure about what spacing you are expecting. – campa Jan 25 '18 at 10:30\sin{\circ]\theta\cos{\circ}\thetaso that\circbe considered as anordinarymath atom. However shouldn't it be typeset as^{\circ}, or better, as\sin\textdegree\theta? – Bernard Jan 25 '18 at 10:31\sin\circand\sin{\circ}, since aBinatom (\circ) is anyway converted toOrdif preceded by anOpatom. – campa Jan 25 '18 at 10:34