PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Mathematical Functions
>
Arithmetic Functions
>
Sqrt (√)
>
BUILT-IN MATHEMATICA SYMBOL
Some Mathematical Functions
Operators
Typing Square Roots
Tutorials »
|
Power
PowerExpand
SqrtBox
See Also »
|
Arithmetic Functions
Continued Fractions & Rational Approximations
Elementary Functions
Mathematical Functions
More About »
Sqrt
Sqrt
[
z
]
or
gives the square root of
z
.
MORE INFORMATION
Mathematical function, suitable for both symbolic and numerical manipulation.
can be entered using
Ctrl
+
2
z
or
.
Sqrt
[
z
]
is converted to
.
Sqrt
is not automatically converted to
z
.
Sqrt
is not automatically converted to
Sqrt
[
a
]
Sqrt
[
b
]
.
These conversions can be done using
PowerExpand
, but will typically be correct only for positive real arguments.
For certain special arguments,
Sqrt
automatically evaluates to exact values.
Sqrt
can be evaluated to arbitrary numerical precision.
Sqrt
automatically threads over lists.
In
StandardForm
,
Sqrt
[
z
]
is printed as
.
√
z
can also be used for input. The
character is entered as
Esc
sqrt
Esc
or
\[Sqrt]
.
EXAMPLES
CLOSE ALL
Basic Examples
(7)
Evaluate numerically to any precision:
Negative numbers have imaginary square roots:
Sqrt
threads element-wise over lists:
is not automatically replaced by
:
It can be simplified to
if one assumes
:
Enter
using
Ctrl
+
2
:
In[1]:=
Out[1]=
Evaluate numerically to any precision:
In[1]:=
Out[1]=
Negative numbers have imaginary square roots:
In[1]:=
Out[1]=
Sqrt
threads element-wise over lists:
In[1]:=
Out[1]=
In[1]:=
Out[1]=
is not automatically replaced by
:
In[1]:=
Out[1]=
It can be simplified to
if one assumes
:
In[2]:=
Out[2]=
Enter
using
Ctrl
+
2
:
In[1]:=
Out[1]=
Scope
(2)
Exact roots are factored out when possible:
Find square roots of complex numbers:
Applications
(2)
Roots of a quadratic polynomial:
Generate periodic continued fractions:
Properties & Relations
(9)
Reduce combinations of square roots:
Evaluate power series involving square roots:
Factor polynomials with square roots in coefficients:
Simplify
handles expressions involving square roots:
There are many subtle issues in handling square roots for arbitrary complex arguments:
PowerExpand
expands forms involving square roots:
It generically assumes that all variables are positive:
Take limits accounting for branch cuts:
Possible Issues
(3)
Square root is discontinuous across its branch cut along the negative real axis:
Sqrt
cannot automatically be reduced to
x
:
With
x
assumed positive, the simplification can be done:
Use
PowerExpand
to do the formal reduction:
Along the branch cut, these are not the same:
Neat Examples
(2)
Approximation to
GoldenRatio
:
Riemann surface for square root:
SEE ALSO
Power
PowerExpand
SqrtBox
TUTORIALS
Some Mathematical Functions
Operators
Typing Square Roots
MORE ABOUT
Arithmetic Functions
Continued Fractions & Rational Approximations
Elementary Functions
Mathematical Functions
RELATED LINKS
MathWorld
The Wolfram Functions Site
New in 1 | Last modified in 3