Difference between revisions of "Documentation/How Tos/Calc: ATAN2 function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 22: | Line 22: | ||
: 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| | |
− | + | * [[Documentation/How_Tos/Calc: COS function|COS]] | |
− | + | * [[Documentation/How_Tos/Calc: SIN function|SIN]] | |
− | + | * [[Documentation/How_Tos/Calc: TAN function|TAN]] | |
− | + | * [[Documentation/How_Tos/Calc: COT function|COT]]''' | |
− | + | * [[Documentation/How_Tos/Calc: ACOS function|ACOS]] | |
− | + | * [[Documentation/How_Tos/Calc: ASIN function|ASIN]] | |
− | + | * [[Documentation/How_Tos/Calc: ATAN function|ATAN]] | |
− | + | * [[Documentation/How_Tos/Calc: ACOT function|ACOT]]''' | |
− | + | * [[Documentation/How_Tos/Calc: DEGREES function|DEGREES]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]''' | |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 13:30, 25 February 2009
ATAN2
Returns the inverse tangent (the arctangent) 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.