sqrt (radicand -- squareRoot)

Inputs

Outputs

sqrt accepts Real32 and Real64 objects. The input is dereferenced and must be non-NIL.

Behavior

Example: sqrt of 9.0 and 2.25

sqrt of 9.0 is 3.0 and of 2.25 is 1.5, a negative Real32 gives NaN, and an unknown value gives an unknown result.

{} () {} [
  "-- known real32 --" printCompilerMessage
  9.0r32 sqrt printStack _:;
  2.25r32 sqrt printStack _:;
  -1.0r32 sqrt printStack _:;

  "-- unknown real32 --" printCompilerMessage
  value: 0.0r32 dynamic;
  value sqrt printStack _:;
] "main" exportFunction

Expected Output During Compilation

-- known real32 --
3.0r32
1.5r32
nanr32
-- unknown real32 --
Real32

See also