Cosine Calculator for Partial Degrees
This cosine calculator computes the cosine of an angle in degrees, including partial degrees. Whether you're working with geometry, trigonometry, or physics, this tool provides precise results for angles with decimal places.
What is Cosine?
Cosine is a trigonometric function that relates the angle of a right triangle to the ratio of the length of the adjacent side to the hypotenuse. In other words, cosine answers the question: "What is the ratio of the adjacent side to the hypotenuse?"
For any angle θ in a right triangle, the cosine of θ is defined as:
In the unit circle, cosine corresponds to the x-coordinate of a point at angle θ from the origin.
How to Use the Calculator
Using the cosine calculator is straightforward:
- Enter the angle in degrees in the input field. You can use partial degrees (e.g., 45.5°).
- Click the "Calculate" button to compute the cosine value.
- View the result in the result panel below the calculator.
- Use the "Reset" button to clear the input and result.
The calculator handles angles from 0° to 360° and provides results with up to 10 decimal places.
The Formula
The cosine of an angle θ in degrees is calculated using the following formula:
This formula converts the angle from degrees to radians before applying the cosine function, which is implemented in JavaScript's Math.cos() function.
Note: The calculator uses JavaScript's built-in Math.cos() function, which expects angles in radians. The conversion from degrees to radians is handled automatically.
Worked Examples
Example 1: 30°
To find cos(30°):
- Convert 30° to radians: 30 × π / 180 ≈ 0.5236 radians
- Compute cos(0.5236) ≈ 0.8660
The cosine of 30° is approximately 0.8660.
Example 2: 45.5°
To find cos(45.5°):
- Convert 45.5° to radians: 45.5 × π / 180 ≈ 0.7930 radians
- Compute cos(0.7930) ≈ 0.7055
The cosine of 45.5° is approximately 0.7055.