Trigonometric

sin function

Returns the sine of the argument.

Syntax

sin(z)

Description

The sin function calculates the sine of an angle z, which may be in radians or degrees depending on the current settings. z may be any numeric expression that evaluates to a real number or a complex number. If z is a real number, the result will be in the range -1 to 1.

Remarks

For arguments with a large magnitude, the function will begin to lose precision.

cos function

Returns the cosine of the argument.

Syntax

cos(z)

Description

The cos function calculates the cosine of an angle z, which may be in radians or degrees depending on the current settings. z may be any numeric expression that evaluates to a real number or a complex number. If z is a real number, the result will be in the range -1 to 1.

Remarks

For arguments with a large magnitude, the function will begin to lose precision.

tan function

Returns the tangent of the argument.

Syntax

tan(z)

Description

The tan function calculates the tangent of an angle z, which may be in radians or degrees depending on the current settings. z may be any numeric expression that evaluates to a real number or a complex number.

Remarks

For arguments with a large magnitude, the function will begin to lose precision. tan is undefined at z = p*π/2, where p is an integer, but the function returns a very large number if z is near the undefined value.

asin function

Returns the inverse sine of the argument.

Syntax

asin(z)

Description

The asin function calculates the inverse sine of z. The result may be in radians or degrees depending on the current settings. z may be any numeric expression that evaluates to a real number. This is the reverse of the sin function.

acos function

Returns the inverse cosine of the argument.

Syntax

acos(z)

Description

The acos function calculates the inverse cosine of z. The result may be in radians or degrees depending on the current settings. z may be any numeric expression that evaluates to a real number. This is the reverse of the cos function.

atan function

Returns the inverse tangent of the argument.

Syntax

atan(z)

Description

The atan function calculates the inverse tangent of z. The result may be in radians or degrees depending on the current settings. z may be any numeric expression that evaluates to a real number. This is the reverse of the tan function.

sec function

Returns the secant of the argument.

Syntax

sec(z)

Description

The sec function calculates the secant of an angle z, which may be in radians or degrees depending on the current settings. sec(z) is the same as 1/cos(z). z may be any numeric expression that evaluates to a real number or a complex number.

Remarks

For arguments with a large magnitude, the function will begin to lose precision.

csc function

Returns the cosecant of the argument.

Syntax

csc(z)

Description

The csc function calculates the cosecant of an angle z, which may be in radians or degrees depending on the current settings. csc(z) is the same as 1/sin(z). z may be any numeric expression that evaluates to a real number or a complex number.

Remarks

For arguments with a large magnitude, the function will begin to lose precision.

cot function

Returns the cotangent of the argument.

Syntax

cot(z)

Description

The cot function calculates the cotangent of an angle z, which may be in radians or degrees depending on the current settings. cot(z) is the same as 1/tan(z). z may be any numeric expression that evaluates to a real number or a complex number.

Remarks

For arguments with a large magnitude, the function will begin to lose precision.

asec function

Returns the inverse secant of the argument.

Syntax

asec(z)

Description

The asec function calculates the inverse secant of z. The result may be in radians or degrees depending on the current settings. asec(z) is the same as acos(1/z). z may be any numeric expression that evaluates to a real number. This is the reverse of the sec function.

acsc function

Returns the inverse cosecant of the argument.

Syntax

acsc(z)

Description

The acsc function calculates the inverse cosecant of z. The result may be in radians or degrees depending on the current settings. acsc(z) is the same as asin(1/z). z may be any numeric expression that evaluates to a real number. This is the reverse of the csc function.

acot function

Returns the inverse cotangent of the argument.

Syntax

acot(z)

Description

The acot function calculates the inverse cotangent of z. The result may be in radians or degrees depending on the current settings. acot(z) is the same as atan(1/z). z may be any numeric expression that evaluates to a real number. This is the reverse of the cot function.

Remarks

The acot function returns a value in the range ]-π/2;π/2] (]-90;90] when calculating in degrees), which is the most common definition, though some may define it to be in the range ]0;π[.