Mega Code Archive
Categories
/
JavaScript Tutorial
/
Math
Math cos()
The cos() method calculates the cosine of a number. It returns a numeric value between -1 and 1, representing the cosine of an angle.
This exanple calculates the cosine of the entered number.
Enter First Number:
The cosine is: