# math:sqrt - XPath XQuery Reference

Returns the non-negative square root of the argument.deterministiccontext-independentfocus-independentIf $arg is the empty sequence, the function returns the empty sequence.Otherwise the result is the mathematical non-negative square root of $arg
            as defined in the  specification of the
               squareRoot function applied to 64-bit binary floating point values.math:sqrt(())()math:sqrt(0.0e0)0.0e0math:sqrt(-0.0e0)-0.0e0math:sqrt(1.0e6)1.0e3math:sqrt(2.0e0)1.4142135623730951e0math:sqrt(-2.0e0)xs:double('NaN')math:sqrt(xs:double('NaN'))xs:double('NaN')math:sqrt(xs:double('INF'))xs:double('INF')math:sqrt(xs:double('-INF'))xs:double('NaN')The treatment of the invalidOperation exception is defined in . The effect is that if the argument is less than zero, the result
            is NaN.If $arg is positive or negative zero, positive infinity, or
               NaN, then the result is $arg. (Negative zero is the only
            case where the result can have negative sign)