Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Example

 
Code Block
// Calculate the arc cosine 
Val = "0.69314718055994530941723212145817" 
Result = SRP_Math("ARCCOS", Val) 
!! Result = 0.804950131975816403786926974489992 !! 
 

...

Code Block
// 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." !!