SqrtBox[x]
is a low-level box construct that represents the displayed object
in notebook expressions.
SqrtBox
SqrtBox[x]
is a low-level box construct that represents the displayed object
in notebook expressions.
Details and Options
- Inside \(…\) SqrtBox[x] can be input as \@x.
- In a notebook a SqrtBox can be created using
or
.
moves out from under the square root sign. - The following options can be given:
-
BaseStyle {} the style to use MultilineFunction Automatic how to handle scripts so long that line-breaking may be necessary SurdForm False whether the radical represents a Surd expression - In StandardForm and InputForm, SqrtBox[x] is by default interpreted on input as Sqrt[x].
- In StandardForm and InputForm, SqrtBox[x] is interpreted on input as Surd[x,2] if the option SurdFormTrue is set.
- The baseline of SqrtBox[x] is taken to be the baseline of x.
- If SqrtBox[x] does not fit on a single line, it is output as x^(1/2).
- In StandardForm, explicit SqrtBox objects are output literally. You can use DisplayForm to see the display form of such objects.
Examples
open all close allBasic Examples (3)
Display a letter under a square root sign:
SqrtBox["x"]//DisplayFormA SqrtBox form is typically interpreted as a square root:
ToExpression[SqrtBox["x"], StandardForm]The Wolfram Language represents a square root as a 1/2 power:
%//FullFormThe standard formatting for a 1/2-power expression uses SqrtBox:
ToBoxes[x ^ (1 / 2), StandardForm]//FullFormThe formatted result looks like this:
x ^ (1 / 2)Scope (1)
Setting SurdFormTrue changes the display and interpretation of a SqrtBox:
{RawBoxes[SqrtBox["x"]], RawBoxes[SqrtBox["x", SurdForm -> True]]}The box SurdFormTrue is interpreted as a Surd expression:
ToExpression[SqrtBox["x", SurdForm -> True], StandardForm]//FullFormNote that Surd[x,2] typically typesets using RadicalBox:
ToBoxes[Surd[x, 2]]RawBoxes[%]See Also
Related Guides
Related Workflows
- Find the Underlying Box Structure of a Formatted Expression
History
Introduced in 1996 (3.0) | Updated in 2012 (9.0)
Text
Wolfram Research (1996), SqrtBox, Wolfram Language function, https://reference.wolfram.com/language/ref/SqrtBox.html (updated 2012).
CMS
Wolfram Language. 1996. "SqrtBox." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/SqrtBox.html.
APA
Wolfram Language. (1996). SqrtBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SqrtBox.html
BibTeX
@misc{reference.wolfram_2026_sqrtbox, author="Wolfram Research", title="{SqrtBox}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/SqrtBox.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_sqrtbox, organization={Wolfram Research}, title={SqrtBox}, year={2012}, url={https://reference.wolfram.com/language/ref/SqrtBox.html}, note=[Accessed: 13-June-2026]}