# math:sin - XPath XQuery Reference

Returns the sine of the argument. The argument is an angle in radians.deterministiccontext-independentfocus-independentIf $θ is the empty sequence, the function returns the empty
            sequence.Otherwise the result is the sine of $θ (which is treated as an angle in
            radians) as defined in the  specification of the
               sin function applied to 64-bit binary floating point values.math:sin(())()math:sin(0)0.0e0math:sin(-0.0e0)-0.0e0math:sin(math:pi() div 2)1.0e0math:sin(-math:pi() div 2)-1.0e0math:sin(math:pi())0.0e0math:sin(xs:double('NaN'))xs:double('NaN')math:sin(xs:double('INF'))xs:double('NaN')math:sin(xs:double('-INF'))xs:double('NaN')The treatment of the invalidOperation and underflow exceptions
            is defined in . If $θ is positive or negative zero, the result is
               $θ.If $θ is positive or negative infinity, or NaN,
            then the result is NaN.Otherwise the result is always in the range -1.0e0 to +1.0e0