cos()
Learn how to use the cos() function to return the cosine of the input value.
Returns the cosine function value of the specified angle. The angle is specified in radians.
Syntax
cos(number)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| number | real | ✔️ | The value in radians for which to calculate the cosine. |
Returns
The cosine of number of radians.
Example
print cos(1)
Output
| result |
|---|
| 0.54030230586813977 |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.