Returns the angle whose cosine is the specified floating point number
Class: Mathematical
Parameters: @d – A number representing a cosine where -1 ≤@d≤ 1
Syntax: @returnValue=@acos(@d)
Returns: An angle, Θ, measured in radians
Remarks: Multiply the return value by 180/∏ to convert from radians to degrees
Example:
//Example for the mathematical @acos method
@d=0.123 //Set cosine value
@result_rad=@acos(@d) //Calculate result in radians (= 1.44748)
@result_deg=@result_rad*(180/@pi()) //Convert radians to degrees (= 82.9347)
message(“Angle in radians is “ + @result_rad + “ and in degrees is “ + @result_deg) //Display results message