CAPL Script

arccos

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

double arccos(double x);

Function

Calculates arccosine of x.

Parameters

x Value between –1 and 1 whose arccosine is to be calculated. Values outside this range cause a CAPLruntime error.

Return Values

Arcus Cosine of x.

Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.

double x;
x = arccos(0); // result PI/2
x = arccos(1); // result 0

arcsin | arctan