The square root of the arguments. |
||
Syntax |
a = Sqrt(m) |
|
Argument |
Name |
Description |
m |
A scalar, vector, or a matrix. |
|
Output |
Name |
Description |
s |
The square root of each entry. |
|
Example |
Find the square root of the elements of a matrix: |
|
Syntax |
||
S = Sqrt([1,2;3,4]) |
||
Result |
||
S = 1 1.414 1.732 2 |
||
Comments |
All arguments must be real. For negative arguments, the result will be imaginary. |