Loading TOC...

MarkLogic 10 Product Documentation
math:atan2

math:atan2(
   $y as xs:double,
   $x as xs:double
) as xs:double

Summary

Returns the arc tangent of y/x, in radians, in the range from -pi/2 to +pi/2 (inclusive), using the signs of y and x to determine the appropriate quadrant.

Parameters
y The floating point dividend.
x The floating point divisor.

Example

  math:atan2(36.23, 5.234) 

  => 1.42732303452594 

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.