Difference between revisions of "Documentation/How Tos/Calc: ATAN2 function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Bot: Adding Category: Documentation)
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:ATAN2 function}}
 +
{{Documentation/CalcFunc MathematicalTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_ATAN_function
 +
|NextPage=Documentation/How_Tos/Calc:_DEGREES_function
 +
}}__NOTOC__
  
 
== ATAN2 ==
 
== ATAN2 ==
Returns the inverse tangent (the arctangent) for specified x and y coordinates.
+
Returns the inverse tangent (the arc tangent) for specified x and y coordinates.
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 22: Line 27:
 
: returns <tt>'''45'''</tt>. The tangent of <tt>'''45'''</tt> degrees is <tt>'''1'''</tt>.
 
: returns <tt>'''45'''</tt>. The tangent of <tt>'''45'''</tt> degrees is <tt>'''1'''</tt>.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: COS function|COS]]
 
* [[Documentation/How_Tos/Calc: COS function|COS]]
 
* [[Documentation/How_Tos/Calc: SIN function|SIN]]
 
* [[Documentation/How_Tos/Calc: SIN function|SIN]]
Line 39: Line 44:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
[[Category: Documentation]]
+
[[Category: Documentation/Reference/Calc/Mathematical functions]]

Latest revision as of 14:23, 31 January 2024

ATAN2

Returns the inverse tangent (the arc tangent) for specified x and y coordinates.

Syntax:

ATAN2(x_coord; y_coord)

x_coord is the value of the x coordinate.
y_coord is the value of the y coordinate.
ATAN2 returns the inverse trigonometric tangent, that is, the angle (in radians) between the x-axis and a line from point x_coord, y_coord to the origin. The angle returned is between -PI and PI.
To return the angle in degrees, use the DEGREES function.

Example:

ATAN2(20; 20)

returns 0.785398163397448 (PI/4 radians).

DEGREES(ATAN2(12.3; 12.3))

returns 45. The tangent of 45 degrees is 1.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ATAN2_function&oldid=259846"
Views
Personal tools
Navigation
Tools
In other languages