sqrt — square root of a number
sqrt(val: number) -> float64
The sqrt function returns the square root of its argument val
, which
must be numeric. The return value is a float64. Negative values
result in NaN
.
The logarithm of a various numbers:
echo '4 2. 1e10 -1' | super -z -c 'yield sqrt(this)' -
=>
2.
1.4142135623730951
100000.
NaN