Compute cosine of an angle in degrees.

Input/Output

similar to the function sin but instead the output value starts from 1. Outputs value between 1 and -1 depending on the given input which scales from rotation (0°–360°)

Notes

Additionally , there are only 4 certain points where you can get a whole number :

  • 0°/360° = 1
  • 90° = 0
  • 180° = -1
  • 270° = 0

*Note: To understand more better search for "trigonemetrical functions" in google XD

Example

Looking for examples? pls refer to the example in sin.