Skip to content


Square root

Syntax: sqrt x, sqrt[x]

Returns as a float where x is numeric and

  • non-negative, the square root of x
  • negative or null, null
  • real or float infinity, 0w
  • any other infinity, the square root of the largest value for the datatype
q)sqrt -1 0n 0 25 50
0n 0n 0 5 7.071068

q)sqrt 12:00:00.000000000

q)sqrt 0Wh

An atomic function.

Domain and range

domain b g x h i j e f c s p m d z n u v t
range  f . f f f f f f f . f f f z f f f f

Range: fz

exp, log, xexp, xlog