sqrt - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

MTM

 sqrt
 compute square root
 realsqrt
 compute real square root

 Calling Sequence sqrt(M) sqrt(x) realsqrt(M) realsqrt(x)

Parameters

 M - array x - expression

Description

 • The sqrt(x) function computes the square root of x.
 • The sqrt(M) function computes the element-wise square root of M.  The result, R, is formed as R[i,j] = sqrt(M[i,j]).
 • The realsqrt(x) function is similar to sqrt(x) but requires that any numbers in the input be real and nonnegative.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=-3.6\right):$
 > $\mathrm{sqrt}\left(M\right)$
 $\left[\begin{array}{ccc}{1.897366596}{}{I}& {1.897366596}{}{I}& {1.897366596}{}{I}\\ {1.897366596}{}{I}& {1.897366596}{}{I}& {1.897366596}{}{I}\end{array}\right]$ (1)

Compatibility

 • The MTM[sqrt] and MTM[realsqrt] commands were updated in Maple 2021.
 • The 'realsqrt' option was introduced in Maple 2021.
 • For more information on Maple 2021 changes, see Updates in Maple 2021.