Abs  Asc

Chapter 2: DataWindow Expression Functions

ACos

Description

Calculates the arccosine of an angle.

Syntax

ACos ( n )

Argument

Description

n

The ratio of the lengths of two sides of a triangle for which you want a corresponding angle (in radians). The ratio must be a value between -1 and 1.

Returns

Double. Returns the arccosine of n if it succeeds.

Examples

Example 1

This expression returns 0:

ACos(1)

Example 2

This expression returns 3.141593 (rounded to six places):

ACos(-1)

Example 3

This expression returns 1.000000 (rounded to six places):

ACos(.540302)

See also





Copyright © 2004. Sybase Inc. All rights reserved. Asc

View this book as PDF