cos(

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.

**See Also**

- degree -- tells Panorama that all angles input to and calculated in trigonometric functions are in degrees rather than radians.
- degrees2radians( -- converts an angle from degrees to radians.
- degreestoradians( -- converts an angle from degrees into radians
- info("angleunits") -- returns the current angular measurement units.
- latlongdistance( -- calculates the distance between two points on the earth (or any other sphere).
- radian -- tells Panorama that all angles in trigonometric functions should be calculated using radians rather than degrees.
- radians2degrees( -- converts an angle from radians to degrees.
- radianstodegrees( -- converts an angle from radians to degrees.
- sin( -- calculates the sine of an angle.
- tan( -- calculates the tangent of an angle.

**History**

Version | Status | Notes |

10.0 | No Change | Carried over from Panorama 6.0 |