Calculates the arc cosine of a value.

Syntax

Result = SRP_Math("ARCCOS", Value, "", DecimalPlaces, ScientificNotation)

Returns

The arc cosine of Value.

Remarks

The ARCCOS operation computes the arc cosine of Value. Value must be in the range −1 ≤ value ≤ 1, else the following error is returned:

"ERROR: Value must be in range: 1 <= Value <= 1."

The angle returned is in the range 0 ≤ result ≤ π

Example

// Calculate the arc cosine 
Val = "0.69314718055994530941723212145817" 
Result = SRP_Math("ARCCOS", Val) 
!! Result = 0.804950131975816403786926974489992 !! 
// Attempting to calculate the arc cosine of PI results in an error 
Val = "3.1415926535897932384626433832795" 
Result = SRP_Math("ARCCOS", Val) 
!! Result = "ERROR: Value must be in range: 1 <= Value <= 1." !!
  • No labels