Skip to content

sqrt

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
6572671f

q)sqrt 0Wh
181.0166

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
Mathematics