Predefined Functions – sqrt

Function name: sqrt – Square Root
Synopsis: sqrt(x)


Input data type Output data type
real real
complex complex
quaternion unsupported

Description:

This function calculates the square root of the argument.

If the input type is real, then it calculates just the square root of real numbers! This means, sqrt(-4) = not defined (result is unpredictable).

If the input type is complex, then it calculates the square root of complex numbers! This means, sqrt(-4) = 2i.

sqrt