Cosecant/Secant/Cotangent Calculator
Calculate cosecant (csc), secant (sec), and cotangent (cot) for any angle in degrees, radians, or gradians with unit circle visualization.
About
Reciprocal trigonometric functions - csc, sec, and cot - are critical in calculus, signal processing, and structural load analysis, yet they introduce discontinuities that standard calculators handle poorly. A computation at θ = 90° yields sec(θ) → undefined, and mistaking a near-infinite floating-point result for a valid output can propagate catastrophic error through an entire engineering model. This calculator detects those singularities explicitly using an epsilon threshold of 1×10−10 and reports undefined rather than a misleading large number.
Angles are accepted in degrees, radians, or gradians and internally normalized before computation. The tool assumes a pure mathematical context: no atmospheric refraction, no relativistic corrections. For angles entered in degrees, conversion precision is limited by IEEE 754 double-precision representation of π, introducing a maximum relative error on the order of 10−15. Pro tip: when working near known singularities (multiples of π or 180°), verify your input unit carefully. A 1° mistake near 0° swings csc from undefined to 57.3.
Formulas
The three reciprocal trigonometric functions are defined as follows:
Where θ is the input angle. Angle unit conversions applied before evaluation:
Singularity detection: if |sin(θ)| < 10−10, then csc and cot are reported as undefined. Likewise, if |cos(θ)| < 10−10, then sec is undefined.
Pythagorean identities linking these functions:
Reference Data
| Angle (°) | Angle (rad) | sin | cos | csc | sec | cot |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | undef | 1 | undef |
| 15 | π/12 | 0.2588 | 0.9659 | 3.8637 | 1.0353 | 3.7321 |
| 30 | π/6 | 0.5 | 0.8660 | 2 | 1.1547 | 1.7321 |
| 45 | π/4 | 0.7071 | 0.7071 | 1.4142 | 1.4142 | 1 |
| 60 | π/3 | 0.8660 | 0.5 | 1.1547 | 2 | 0.5774 |
| 75 | 5π/12 | 0.9659 | 0.2588 | 1.0353 | 3.8637 | 0.2679 |
| 90 | π/2 | 1 | 0 | 1 | undef | 0 |
| 120 | 2π/3 | 0.8660 | −0.5 | 1.1547 | −2 | −0.5774 |
| 135 | 3π/4 | 0.7071 | −0.7071 | 1.4142 | −1.4142 | −1 |
| 150 | 5π/6 | 0.5 | −0.8660 | 2 | −1.1547 | −1.7321 |
| 180 | π | 0 | −1 | undef | −1 | undef |
| 210 | 7π/6 | −0.5 | −0.8660 | −2 | −1.1547 | 1.7321 |
| 225 | 5π/4 | −0.7071 | −0.7071 | −1.4142 | −1.4142 | 1 |
| 240 | 4π/3 | −0.8660 | −0.5 | −1.1547 | −2 | 0.5774 |
| 270 | 3π/2 | −1 | 0 | −1 | undef | 0 |
| 300 | 5π/3 | −0.8660 | 0.5 | −1.1547 | 2 | −0.5774 |
| 315 | 7π/4 | −0.7071 | 0.7071 | −1.4142 | 1.4142 | −1 |
| 330 | 11π/6 | −0.5 | 0.8660 | −2 | 1.1547 | −1.7321 |
| 360 | 2π | 0 | 1 | undef | 1 | undef |