How do I write a chevron/circum (^) in MathJax? A backslash doesn't work as an escape character.
(Specific context: using x^y to mean XOR as in $x\oplus y$. It's not my choice of notation so don't tell me that I can just use a different symbol.)
How do I write a chevron/circum (^) in MathJax? A backslash doesn't work as an escape character.
(Specific context: using x^y to mean XOR as in $x\oplus y$. It's not my choice of notation so don't tell me that I can just use a different symbol.)
Is $x\hat{}y$ acceptable? Gotten with $x\hat{}y$
. In-line I have used
$x$^$y$
which produces $x$^$y$. To get that effect in a displayed formula, an obvious work around is to wrap it in a text box
$$
\text{$x$^$y$}
$$
produced with the snippet $$\text{$x$^$y$}$$
.
I'd imagine $\land$ would be the right symbol here as an operator, so \land
(logical and) or \wedge
will produce $\land$ (and $\wedge$).
But it might not be the same as $x$^$y$ if you write $x\land y$. It's up to you to decide if you like it or not. In either case, be sure to clarify the notation, which normally means "and" rather than "xor".
You can try $x^\land y$ as well.
$x\mathbin{{}^\land} y$
. I also think that \land
should probably be replaced by \wedge
(they are synonymous and are typeset identically, but \wedge
feels more general).
$\endgroup$
– Xander Henderson♦
May 14 '20 at 23:56
The first time you use MathJax in a post, use this command:
\newcommand{\^}{\text{^}}
If you apply it by itself, it will just make a tiny blank space: $\newcommand{\^}{\text{^}}$.
Thenceforth, every time you use \^
, you will get a chevron: $x\^y$.