5
$\begingroup$

I can't find how to write roots other than square root using MathJax. There doesn't seem to be anything about it on the legendary MathJax basic tutorial and quick reference

These are my best attempts, but they don't look right:

3\sqrt{64} $\rightarrow\text{ } 3\sqrt{64}$

{3}\sqrt{64} $\rightarrow\text{ } {3}\sqrt{64}$

^3\sqrt{64} $\rightarrow\text{ } ^3\sqrt{64}$

What I want to display:

cube root of 64

How can I properly format it using MathJax? Or is it not possible in MathJax yet?

$\endgroup$
6
  • 1
    $\begingroup$ \sqrt[3]{64} gives you $$\sqrt[3]{64}$$ $\endgroup$
    – amWhy
    Oct 12, 2020 at 18:45
  • 4
    $\begingroup$ It actually is on that legendary page under item $10$ $\endgroup$ Oct 12, 2020 at 23:59
  • 1
    $\begingroup$ if the \sqrt[n]m$\sqrt[n]m$ didn't exist you would add negative space to get some approximation of the real deal {}^3\!\!\!\sqrt{64}${}^3\!\!\!\sqrt{64}$ also note that you need {}^3 instead of just ^3 to avoid the previous thing from having a power e.g. a=^3\sqrt b vs a={}^3\sqrt b $a=^3\sqrt b$ vs $a={}^3\sqrt b$. In fact if the previous thing already has a power then you get an error e.g. a^3^3\sqrt b vs a^3{}^3\sqrt b $a^3^3\sqrt b $ vs $a^3{}^3\sqrt b$. This is useful if you like writing $a_{ij}{}^{kl}$, ${}^t\!A$, ${}^n C_r$... $\endgroup$ Oct 13, 2020 at 1:47
  • $\begingroup$ @CalvinKhor thanks! $\endgroup$ Oct 13, 2020 at 18:33
  • $\begingroup$ @Jyrki yes, that's what I suggested in my comment the other day (on amWhy's answer). $\endgroup$ Oct 16, 2020 at 22:12
  • $\begingroup$ Sorry, @Gerry. Don't know how I missed your comment. $\endgroup$ Oct 17, 2020 at 5:33

2 Answers 2

7
$\begingroup$

Use \sqrt[n]{m} to get the $n$th root of m: $\sqrt[n]{m}.$

$\endgroup$
2
  • 6
    $\begingroup$ Or, \root3\of{64} $\root3\of{64}$ $\endgroup$ Oct 13, 2020 at 2:07
  • $\begingroup$ @GerryMyerson $\root{a}\of{x}$ $\root{a}\of{x}$ yes that works too! Thanks $\endgroup$ Oct 16, 2020 at 17:47
5
$\begingroup$
$$\sqrt[3]{64}$$

produces

$$\sqrt[3]{64}$$

This is standard LaTeX syntax, see e.g. this page. It might be confusing since 'sqrt' is an abbreviation of 'square root', but it works nevertheless.

$\endgroup$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .