SqrtBox

SqrtBox[x]
is a low-level box construct that represents the displayed object in notebook expressions.

Details and OptionsDetails and Options

  • Inside SqrtBox[x] can be input as .
  • In a notebook a SqrtBox can be created using Ctrl+2 or Ctrl+@. Ctrl+Space moves out from under the square root sign.
  • In StandardForm and InputForm, SqrtBox[x] is interpreted on input as Sqrt[x].
  • 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 .
  • In StandardForm, explicit SqrtBox objects are output literally. You can use DisplayForm to see the display form of such objects.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Display a letter under a square root sign:

In[1]:=
Click for copyable input
Out[1]//DisplayForm=

A SqrtBox form is typically interpreted as a square root:

In[1]:=
Click for copyable input
Out[1]=

Mathematica represents a square root as a 1/2 power:

In[2]:=
Click for copyable input
Out[2]//FullForm=

The standard formatting for a 1/2-power expression uses SqrtBox:

In[1]:=
Click for copyable input
Out[1]//FullForm=

The formatted result looks like this:

In[2]:=
Click for copyable input
Out[2]=
New in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »