Difference between revisions of "Documentation/How Tos/Calc: COS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
Line 3: | Line 3: | ||
== COS == | == COS == | ||
Returns the cosine of the given angle (in radians). | Returns the cosine of the given angle (in radians). | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 11: | Line 10: | ||
: To return the cosine of an angle in degrees, use the <tt>'''RADIANS'''</tt> function. | : To return the cosine of an angle in degrees, use the <tt>'''RADIANS'''</tt> function. | ||
− | |||
=== Example: === | === Example: === | ||
Line 19: | Line 17: | ||
<tt>'''COS(RADIANS(60))'''</tt> | <tt>'''COS(RADIANS(60))'''</tt> | ||
: returns <tt>'''0.5'''</tt>, the cosine of <tt>'''60'''</tt> degrees | : returns <tt>'''0.5'''</tt>, the cosine of <tt>'''60'''</tt> degrees | ||
− | |||
=== See also: === | === See also: === |
Revision as of 06:37, 2 March 2008
COS
Returns the cosine of the given angle (in radians).
Syntax:
COS(angle)
- returns the (trigonometric) cosine of angle, the angle in radians.
- To return the cosine of an angle in degrees, use the RADIANS function.
Example:
COS(PI()/2)
- returns 0, the cosine of PI/2 radians
COS(RADIANS(60))
- returns 0.5, the cosine of 60 degrees