Trigonometric Functions

Trigonometric functions perform common trig calculations and conversions. Note that most functions expect input in radians, not degrees or gradians.

ACOS

Returns the angle value in radians for the given cosine.  The result is expressed in radians between  and 0.

Syntax

ACOS( number )

Arguments

number Cosine value or reference.

Example

ACOS( .5 ) ACOS ( E4 )

ACOSH

Returns the hyperbolic angle in radians for the given cosine.

Syntax

ACOSH( number )

Arguments

number Hyperbolic cosine value or reference. Must be greater than or equal to 1.

Example

ACOSH( .5 )

ASIN

Returns the angle value in radians for the given sine.  The result is expressed in radians between - /2 and  /2.

Syntax

ASIN( number )

Arguments

number Sine value or reference.

Example

ASIN( .5 ) ASIN ( E4 )

ASINH

Returns the hyperbolic angle in radians for the given sine.

Syntax

ASINH( number )

Arguments

number Hyperbolic sine value or reference. Must be greater than 1.

Example

ASINH( .5 )

ATAN

Returns the angle value in radians for the given tangent. The result is expressed in radians between - /2 and  /2.

Syntax

ATAN( number )

Arguments

number Tangent value or reference.

Example

ATAN( .5 ) ATAN ( E4 )

ATAN2

Returns the arctangent for the given coordinates. The arctangent is the angle in radians between the lines drawn from {0,0} to {x-value, 0} and from {0, 0} to {x-value, y-value}. The result is expressed in radians between - and  (but not including - ).

Syntax

ATAN2( x-value, y-value)

Arguments

x-value X axis coordinate.
y-value Y axis coordinate.

Example

ATAN2( 2, 1 ) = 0.46364761 (about 26.5 degrees)

ATANH

Returns the hyperbolic angle in radians for the given tangent.

Syntax

ATANH( number )

Arguments

number Hyperbolic tangent value or reference. This value must be between -1 and 1 (excluding -1 and 1).

Example

ATANH( .5 )

COS

Returns the approximate cosine value for an angle expressed in radians.

Syntax

COS( number )

Arguments

number Angle value or reference.

Example

COS( .5 ) = 0.8775825618904

COSH

Returns the hyperbolic cosine for the given value.

Syntax

COSH( number )

Arguments

number Angle value or reference.

Example

COSH( .5 )

DEGREES

Converts the given angle in radians to degrees.

Syntax

DEGREES( expression )

Arguments

expression Angle or reference in radians.

Example

DEGREES( PI() ) = 180

PI

Returns the value of  .

Syntax

PI()

Arguments

none

Example

PI() = 3.14159265

RADIANS

Converts the given angle in degrees to radians.

Syntax

RADIANS( expression )

Arguments

expression Angle or reference in degrees.

Example

RADIANS( 180 ) =  (3.14159265)

SIN

Returns the approximate sine value for an angle expressed in radians.

Syntax

SIN( number )

Arguments

number

Angle value or reference.

Example

SIN( .5 ) = 0.4794255386042

SINH

Returns the hyperbolic sine for the given value.

Syntax

SINH( number )

Arguments

number Angle value or reference.

Example

SINH( .5 )

TAN

Returns the approximate tangent value for an angle expressed in radians.

Syntax

TAN( number )

Arguments

number

Angle value or reference.

Example

TAN( .5 ) = 0.5463024898438

TANH

Returns the hyperbolic tangent for the given value.

Syntax

TANH( number )

Arguments

number

Angle value or reference.

Example

TANH( .5 )


Copyright © 1999, Gobe Software, Inc