Syntax#
\sqrto[a]optional math contentm{b}math contentArgspec o m — one optional and one mandatory argument. Reading argspecs
Common tasks#
How to write a square root#
How to write an nth root#
How to write a nested radical#
How to write a cube root of a fraction#
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Equivalent forms#
\root #1 \of{#2}exactFor the indexed form, TeX's general-root syntax is equivalent.
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\sqrt{a} | Positive · baseline | Pass | Pass | Pass |
\sqrt[a]{b} | Positive · vary:o[0] | Pass | Pass | Pass |
\sqrt a | Positive · bare[1] | Pass | Pass | Pass |