Consider the following math expressions (which are not equivalent):
(e^x)^y
e^(x^y)
Can I write these in Unicode (with unlimited number of bracketable subscripts)?
Consider the following math expressions (which are not equivalent):
(e^x)^y
e^(x^y)
Can I write these in Unicode (with unlimited number of bracketable subscripts)?
Unicode does define some specific codepoints for superscripts and subscripts.
There are some codepoints specifically for x
, y
, (
and )
as superscripts. For your two specific examples, the closest you can get is something like this:
U+0028 U+0065 U+02E3 U+0029 U+02B8
(eˣ)ʸ
U+0065 U+207D U+02E3 U+005E U+02B8 U+207E
e⁽ˣ^ʸ⁾
In this second case, you cannot have y
as a superscript of x
when x
is already a superscript of e
. In other words, something like this is not possible in Unicode:
If you tried putting the x
and y
superscripts together, it would come out like this instead:
e⁽ˣʸ⁾
You can, however, replace x
and y
with actual number digits:
⁰
U+2070
¹
U+00B9
²
U+00B2
³
U+00B3
⁴
U+2074
⁵
U+2075
⁶
U+2076
⁷
U+2077
⁸
U+2078
⁹
U+2079
For example:
(e¹⁰)²