Compute the cosine of any angle, visualize the trigonometric ratio on the unit circle, and explore key properties of the cosine function.
The cosine function (cos θ) is one of the fundamental trigonometric functions. In the context of the unit circle (a circle of radius 1 centered at the origin), cos θ corresponds to the x-coordinate of the point where the terminal ray of angle θ intersects the circle. This geometric interpretation provides an intuitive way to understand periodicity, evenness, and the relation to sine.
cos θ = adjacent / hypotenuse (right triangle definition)
On unit circle: cos θ = x-coordinate of point (cosθ, sinθ)
Euler's formula: cos θ = (e^{iθ} + e^{-iθ}) / 2
Visualizing trigonometric functions on the unit circle deepens conceptual understanding. This tool goes beyond simple numeric output by showing the exact position of the terminal point, the horizontal projection (cosine), and the relationship to sine. Ideal for students learning trigonometry, engineers verifying calculations, or teachers preparing dynamic demonstrations.
The calculator uses the built-in JavaScript Math.cos function which complies with IEEE 754 floating-point standard. When degrees are selected, the input is converted to radians (radians = degrees × π/180). The displayed values are accurate to 15 decimal places. The unit circle visualization is rendered with HTML5 Canvas, dynamically adjusting to any angle.
Numerical precision note: For angles where cosθ is extremely close to zero (absolute value less than 1×10⁻¹⁴), tanθ is displayed as positive or negative infinity (±∞), approximating the vertical asymptotes at π/2 and 3π/2. Due to the binary nature of floating‑point arithmetic, results for some exact angles (like 60°) may not be exactly 0.5 but a very close approximation (e.g., 0.49999999999999994). This is an inherent limitation of computer‑based calculation and is typically within 1×10⁻¹⁵ of the exact value.
| Angle (degrees) | Angle (radians) | cos θ (exact) | cos θ (decimal) | Quadrant |
|---|---|---|---|---|
| 0° | 0 | 1 | 1.0000 | On positive x-axis |
| 30° | π/6 | √3/2 | 0.8660 | I |
| 45° | π/4 | √2/2 | 0.7071 | I |
| 60° | π/3 | 1/2 | 0.5000 | I |
| 90° | π/2 | 0 | 0.0000 | On positive y-axis |
| 120° | 2π/3 | -1/2 | -0.5000 | II |
| 180° | π | -1 | -1.0000 | On negative x-axis |
| 270° | 3π/2 | 0 | 0.0000 | On negative y-axis |
In electrical engineering, voltage and current in AC circuits follow sinusoidal waveforms. For a purely resistive load, the instantaneous voltage V(t) = Vₚ·cos(ωt + φ), where the cosine term models the phase shift. Engineers use cosine values to compute power factors (cos φ) which measure efficiency. With this calculator, you can quickly evaluate cos φ for any phase angle — essential for power system design.
The word "cosine" derives from the Latin sinus complementi (sine of the complement). Historically, cosine emerged as the sine of the complementary angle (90° − θ). Ancient Indian mathematicians (5th century) developed tables of sines, and later Islamic scholars introduced the cosine as "jiba tamam". In the 16th century, European mathematicians like Georg Joachim Rheticus popularized the modern notation. The unit circle representation was formalized by Leonhard Euler, who also connected cosine to complex exponentials, revolutionizing analysis. The term "co‑sine" literally means "complement's sine," highlighting its relationship with the sine function.
The cosine function can be expressed as a Maclaurin series: cos x = Σₙ₌₀^∞ (−1)ⁿ x²ⁿ/(2n)! = 1 − x²/2! + x⁴/4! − x⁶/6! + ... This infinite series converges for all real x and is used by computers for high-precision evaluation. Our calculator uses native processor instructions for speed and accuracy, but the underlying principle remains the same — ensuring reliable results for any scientific application.