Reference for Wiring version 0023+. 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() |
||
|---|---|---|---|
| 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 |
|
||
| 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() |

