cos()
Description
Calculates the cosine of an angle (in radians). The result will be between -1 and 1.
Syntax
cos(rad)
Parameter Values
- rad: The angle in radians. Allowed data types: float.
Return Values
- The cos of the angle. Data type: double.
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.
Follow Us