Difference between revisions of "Documentation/How Tos/Calc: COT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
Line 3: | Line 3: | ||
== COT == | == COT == | ||
Returns the cotangent of the given angle (in radians). | Returns the cotangent of the given angle (in radians). | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 9: | Line 8: | ||
: returns the (trigonometric) cotangent of <tt>'''angle'''</tt>, the angle in radians. | : returns the (trigonometric) cotangent of <tt>'''angle'''</tt>, the angle in radians. | ||
− | |||
: To return the cotangent of an angle in degrees, use the <tt>'''RADIANS'''</tt> function. | : To return the cotangent of an angle in degrees, use the <tt>'''RADIANS'''</tt> function. | ||
− | |||
: The cotangent of an angle is equivalent to 1 divided by the tangent of that angle. | : The cotangent of an angle is equivalent to 1 divided by the tangent of that angle. | ||
− | |||
=== Example: === | === Example: === | ||
Line 23: | Line 19: | ||
<tt>'''COT(RADIANS(45))'''</tt> | <tt>'''COT(RADIANS(45))'''</tt> | ||
: returns <tt>'''1'''</tt>, the cotangent of <tt>'''45'''</tt> degrees. | : returns <tt>'''1'''</tt>, the cotangent of <tt>'''45'''</tt> degrees. | ||
− | |||
=== See also: === | === See also: === |
Revision as of 06:38, 2 March 2008
COT
Returns the cotangent of the given angle (in radians).
Syntax:
COT(angle)
- returns the (trigonometric) cotangent of angle, the angle in radians.
- To return the cotangent of an angle in degrees, use the RADIANS function.
- The cotangent of an angle is equivalent to 1 divided by the tangent of that angle.
Example:
COT(PI()/4)
- returns 1, the cotangent of PI/4 radians.
COT(RADIANS(45))
- returns 1, the cotangent of 45 degrees.