| Index

| Reference for Wiring 1.0 (ALPHA) 0021+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name |  | ### cos()
Examples |  |
Description |  | Calculates the cosine of an angle. The cos() function expects the values of the angle parameter to be provided in radians (values between 0 and 6.28). Values are returned in the range -1 to 1.
Syntax |  |
    cos(angle)
Parameters |  |
angle |  | float: an angle measured in radians (PI to -PI)
Returns |  | the cosine (a value from -1.0 to 1.0) of the angle specified by the parameter angle
Usage |  | Web & Application
Related |  | sin() tan() atan2() radians()