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

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
Line 3: Line 3:
 
== SIN ==
 
== SIN ==
 
Returns the sine of the given angle (in radians).
 
Returns the sine of the given angle (in radians).
 
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 11: Line 10:
  
 
: To return the sine of an angle in degrees, use the <tt>'''RADIANS'''</tt> function.
 
: To return the sine of an angle in degrees, use the <tt>'''RADIANS'''</tt> function.
 
  
 
=== Example: ===
 
=== Example: ===
Line 20: Line 18:
 
<tt>'''SIN(RADIANS(30))'''</tt>
 
<tt>'''SIN(RADIANS(30))'''</tt>
 
: returns <tt>'''0.5'''</tt>, the sine of <tt>'''30'''</tt> degrees
 
: returns <tt>'''0.5'''</tt>, the sine of <tt>'''30'''</tt> degrees
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 06:38, 2 March 2008


SIN

Returns the sine of the given angle (in radians).

Syntax:

SIN(angle)

returns the (trigonometric) sine of angle, the angle in radians.
To return the sine of an angle in degrees, use the RADIANS function.

Example:

SIN(PI()/2)

returns 1, the sine of PI/2 radians

SIN(RADIANS(30))

returns 0.5, the sine of 30 degrees

See also:

COS, TAN, COT

ACOS, ASIN, ATAN, ATAN2, ACOT

RADIANS, PI

Mathematical functions

Personal tools