Owning Class: basic
Requires: MathScript RT Module
c = sqrtofreal(a)
Legacy Name: realsqrt
Computes the square roots of the input elements. sqrtofreal is equivalent to sqrt for positive real numbers but generates an error for all other input elements.
| Name | Description |
|---|---|
| a | Specifies the elements whose square roots you want to compute. a is a matrix of positive real numbers. |
| Name | Description |
|---|---|
| c | Returns the square roots of a. c is a matrix of the same size as a. |
A = [1:1:5]
C = sqrtofreal(A)