Mathematica > Notebooks and Documents > Low-Level Notebook Programming > Low-Level Notebook Structure > SqrtBox >

SqrtBox

SqrtBox[x]
is a low-level box construct that represents the displayed object in notebook expressions.
  • 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.
  • 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 .
Display a letter under a square root sign:
A SqrtBox form is typically interpreted as a square root:
Mathematica represents a square root as a 1/2 power:
The standard formatting for a 1/2-power expression uses SqrtBox:
The formatted result looks like this:
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]=
Nested square root boxes:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF