cos(
ANGLE
)

The cos( function calculates the cosine of an angle.

Parameters

This function has one parameter:

angle – a numeric value, an angle. The angle is usually specified in a mathematical unit of measurement called radians, however, within a procedure you can temporarily force Panorama to use degrees (see below). One radian is equal to approximately 57.2958 degrees (the exact value is 180/pi).

Description

This function calculates the cosine of an angle. The graph below shows the result of the cosine function given input values from –20 to +20.

The cos( function normally accepts input angles in radians. In a procedure you can tell Panorama to switch to using degrees instead, like this:

``````degree
NewAngle=cos(Angle)
``````

The degree statement tells Panorama to use degrees instead of radians in all trigonometry calculations. Panorama will continue to use degrees until the end of the procedure, or until a radian statement is encountered.

• degree -- tells Panorama that all angles input to and calculated in trigonometric functions are in degrees rather than radians.