sqrt
Algebraic square root function.
Syntax
sqrt(expr)
Argument
- expr
- A valid scalar, vector, or matrix expression.
Example
Templex Expression | Results |
---|---|
{sqrt(16)} |
4 |
{sqrt( {0, 1, 4} )} |
0, 1, 2 |
{sqrt( { {0, 1}, {4, 9} } )} |
{0, 1}, {2, 3} |
Comments
If expr is a scalar, the result is a scalar which is the square root of expr. expr must be non-negative.
If expr is a vector, the result is a vector of the same dimensions containing the square root of each element in expr. Each element of expr must be non-negative.
If expr is a vector, the result is a vector of the same dimensions containing the square root of each element in expr. Each element of expr must be non-negative.