← All exercises

Square Root

easy

Outputs the square root of a REAL input's magnitude.

What it teaches

Use SQRT on a REAL value. Negative inputs do not fault: SQRT roots the magnitude, so SQRT(-9) gives 3. Most roots are fractional: SQRT(2) is approximately 1.4142135.

Inputs and outputs

TagTypeDefaultDescription
In_ValueREAL9Value to take the square root of
Out_RootREALSquare root of the input's magnitude

Required behavior