## ArcCos

Belongs to : Function### Description

The ArcCos function is a mathematical function giving the value in radians of the Arc Cosine of Number.

PI radians = 180 degrees

**Notes**

The System unit supports only the following angular functions:

ArcTan

Sin

Cos

Special floating point values INF, -INF yield +PI/2 and -PI/2 respectively.

#### Example code

1 2 3 4 5 6 7 8 9 10 11 |
var float : single; begin // The ArcCos of 0.5 should give 60 degrees float := ArcCos(0.5); float := RadToDeg(float); // Convert result to degrees ShowMessage('ArcCos of 0.5 = '+FloatToStr(float)+' degrees'); end; { ArcCos of 0.5 = 60 degrees } |