Fractions and roots\root

\rootCommand

Legacy/plain-TeX nth-root notation such as \root 3 \of x, mainly for compatibility with older TeX sources rather than modern LaTeX style.

\root\of{x}
Available in
base
Kind
prefix
Allowed mode
math
Frequency
<0.01% of corpus formulasrank 216 of 263
Commonality
low
Tags
discouraged
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\rootu{\of}a\ofmath contentm{b}math content

Argspec u{\of} m — two mandatory arguments. Reading argspecs

Examples#

\root n_i\of{x}
\root{n_i}\of{x}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

base/root-of-to-sqrtfrom Authoringrender

Rewrite legacy root-of syntax to bracketed sqrt notation.

\root #1 \of #2 \sqrt[#1]{#2}

Equivalent forms#

  • \sqrt[#1]{#2}approximate

    For ordinary nth-root usage this matches \sqrt[#1]{#2} semantically, but MathJax's \sqrt has an extra convenience case for an unbraced following \frac that \root does not.

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
a \root 3 \of xPositive · ctx:basicPassFailPass
All 21 in Fractions and roots