Trigonometric & Mathematical Constants Table Markdown Table Template
A table of special angles is the reference people keep open while doing something else: a student checking a homework step, a physicist writing up a derivation, a graphics programmer hard-coding a rotation in a shader. It lists the angles whose sine, cosine, and tangent have exact closed forms (multiples of 30° and 45°) in both degrees and radians, so readers can swap a decimal approximation for the exact value or confirm that a result is in the right quadrant.
Edit This Template
Edit cells, add rows, or sort — the Markdown updates livePaste cells from Excel or Google Sheets into the first header to replace the table · Tab / Enter / arrows move · Shift+F10 opens row & column actions
When to Use This Table
Everything in this table derives from two triangles. The 45-45-90 triangle has sides 1, 1, and √2, giving sin 45° = cos 45° = √2/2. The 30-60-90 triangle has sides 1, √3, and 2, giving the halves and √3/2 values for 30° and 60°. On the unit circle, the point at angle θ is (cos θ, sin θ), which is why the last column must agree with the cosine and sine columns in every row, and why the signs follow the quadrant.
What separates a dependable table from a sloppy one is consistency and honesty about precision. Pick one form for radicals (rationalized √3/3 or 1/√3) and use it throughout, write “undefined” rather than ∞ where cosine is zero, show decimals with a stated number of places instead of mixing three and ten, and choose a notation your renderer displays correctly.
Formatting This Table in Markdown
A trigonometric & mathematical constants table table puts a few things in cells that Markdown treats as syntax. These are the ones to watch so it renders correctly on GitHub, GitLab, Obsidian and docs sites.
Math headers need a math renderer; plain Unicode does not
Headers such as
$\sin(\theta)$render as math on GitHub, GitLab and Obsidian, but docs generators like MkDocs or Docusaurus need a math plugin, and elsewhere the dollar signs show as literal text. If the table must read correctly everywhere, writesin θin the header and keep LaTeX for pages you control; see math in tables.Pick code spans or math for the values, not both
A value in a code span, like
√3/2, shows exactly as typed in monospace, while$\frac{\sqrt{3}}{2}$typesets a stacked fraction and makes that row taller. Mixing the two in one column makes the exact values look inconsistent, so choose one style per column.Add a column people can paste into code
Symbols such as
√3/2andπ/6read well, but most languages need a function call such assqrt(3)/2or a decimal. A code-ready column, or decimals like0.8660, saves readers from retyping each value.Fix the decimal count so right-aligned digits line up
GFM aligns the edge of the cell, not the decimal point, so
0.5above0.8660looks ragged even when right-aligned. Give every decimal in a column the same number of places (0.5000,0.7071,0.8660); centered exact values, as in this template, need no such padding.
What Goes in Each Column
| Column | Alignment | What to put here |
|---|---|---|
| Angle (Deg) | center :---: | The angle with a real degree sign, ° (U+00B0), not a superscript o or the ordinal indicator º. Centered, in ascending order. Include 360° only if you want readers to see that the values repeat; otherwise stop at 270° or 330°. |
| Angle (Rad) | center :---: | The equivalent in radians as a reduced multiple of π: π/6, 3π/4, 11π/6. Write 0 without a π. For readers who will paste values into code, add the decimal in a separate column rather than in this cell, so the exact form stays clean. |
| $\sin(\theta)$ | center :---: | The exact value in simplest radical form, such as √3/2 or with GitHub math $\frac{\sqrt{3}}{2}$. Sine is the y-coordinate on the unit circle, so it is positive in quadrants I and II and negative in III and IV. Use a true minus sign or LaTeX minus, not a stray hyphen. |
| $\cos(\theta)$ | center :---: | The exact x-coordinate on the unit circle. A quick check while filling it in: cos θ equals sin(90° − θ), so the cosine column for 30°, 45°, 60° is the sine column read in reverse. Cosine is negative in quadrants II and III. |
| $\tan(\theta)$ | center :---: | Sine divided by cosine, in the same radical style as the other columns. Where cosine is 0 (90° and 270°) write “undefined”: the one-sided limits head to +∞ and −∞, so no single infinity is correct. Tangent is positive in quadrants I and III. |
| Exact Coordinate $(x, y)$ | left :--- | The unit-circle point as (cos θ, sin θ), copied from the two columns before it. Left-aligned because it is a pair, not a single number. It is a useful self-check: if this cell disagrees with the cosine or sine cell, one of them is wrong. |
How to Fill It In
- 1Decide the scope first: the first quadrant for a quick reference, every multiple of 30° and 45° from 0° to 330° for a full unit circle. Add a decimal column only if readers will use the values in code or measurements.
- 2Derive the exact values from the two special triangles and the quadrant sign rules instead of copying from another table. Reduce every fraction and settle on rationalized or unrationalized denominators before you start.
- 3Choose notation for your renderer. Unicode in code spans (
√3/2) displays everywhere; GitHub renders$...$math inside table cells (see math and LaTeX in tables). For a paper, export the finished table with the Markdown to LaTeX converter. - 4Verify numerically with a short script: compute
Math.sin(deg * Math.PI / 180)for each row and compare with the decimal value of your exact entry to within about1e-12. Typos in radicals show up immediately. - 5Run the identity checks before publishing: sin² θ + cos² θ = 1 in every row, tan θ = sin θ / cos θ wherever cosine is non-zero, and signs match the quadrant.
Ready-to-Paste Variations
Quadrants II to IV with GitHub math
Completes the unit circle using reference angles. Uses $...$ math, which renders on GitHub; on renderers without math support, use Unicode forms such as −√3/2 instead.
| Angle | Radians | sin | cos | tan |
| :---: | :---: | :---: | :---: | :---: |
| 120° | $\frac{2\pi}{3}$ | $\frac{\sqrt{3}}{2}$ | $-\frac{1}{2}$ | $-\sqrt{3}$ |
| 135° | $\frac{3\pi}{4}$ | $\frac{\sqrt{2}}{2}$ | $-\frac{\sqrt{2}}{2}$ | $-1$ |
| 150° | $\frac{5\pi}{6}$ | $\frac{1}{2}$ | $-\frac{\sqrt{3}}{2}$ | $-\frac{\sqrt{3}}{3}$ |
| 210° | $\frac{7\pi}{6}$ | $-\frac{1}{2}$ | $-\frac{\sqrt{3}}{2}$ | $\frac{\sqrt{3}}{3}$ |
| 225° | $\frac{5\pi}{4}$ | $-\frac{\sqrt{2}}{2}$ | $-\frac{\sqrt{2}}{2}$ | $1$ |
| 240° | $\frac{4\pi}{3}$ | $-\frac{\sqrt{3}}{2}$ | $-\frac{1}{2}$ | $\sqrt{3}$ |
| 270° | $\frac{3\pi}{2}$ | $-1$ | $0$ | undefined |
| 300° | $\frac{5\pi}{3}$ | $-\frac{\sqrt{3}}{2}$ | $\frac{1}{2}$ | $-\sqrt{3}$ |
| 315° | $\frac{7\pi}{4}$ | $-\frac{\sqrt{2}}{2}$ | $\frac{\sqrt{2}}{2}$ | $-1$ |
| 330° | $\frac{11\pi}{6}$ | $-\frac{1}{2}$ | $\frac{\sqrt{3}}{2}$ | $-\frac{\sqrt{3}}{3}$ |Decimal approximations, first quadrant
Rounded to 10 decimal places, right-aligned so the decimal points line up. Useful for test fixtures and lookup tables in code.
| Angle | sin | cos | tan |
| :---: | ---: | ---: | ---: |
| 0° | 0.0000000000 | 1.0000000000 | 0.0000000000 |
| 30° | 0.5000000000 | 0.8660254038 | 0.5773502692 |
| 45° | 0.7071067812 | 0.7071067812 | 1.0000000000 |
| 60° | 0.8660254038 | 0.5000000000 | 1.7320508076 |
| 90° | 1.0000000000 | 0.0000000000 | undefined |Mathematical constants with code equivalents
Values truncated (not rounded) to 14 decimal places, as the ellipsis indicates. Prefer the language constant over typing digits by hand.
| Constant | Symbol | Value | JavaScript | Python |
| :--- | :---: | :--- | :--- | :--- |
| Pi | $\pi$ | 3.14159265358979… | `Math.PI` | `math.pi` |
| Tau | $\tau = 2\pi$ | 6.28318530717958… | `2 * Math.PI` | `math.tau` |
| Euler’s number | $e$ | 2.71828182845904… | `Math.E` | `math.e` |
| Golden ratio | $\varphi$ | 1.61803398874989… | `(1 + Math.sqrt(5)) / 2` | `(1 + math.sqrt(5)) / 2` |
| Square root of 2 | $\sqrt{2}$ | 1.41421356237309… | `Math.SQRT2` | `math.sqrt(2)` |
| Natural log of 2 | $\ln 2$ | 0.69314718055994… | `Math.LN2` | `math.log(2)` |
| One degree in radians | $\pi/180$ | 0.01745329251994… | `Math.PI / 180` | `math.radians(1)` |Common Mistakes
Passing degrees to functions that expect radians.
Math.sin, Python’smath.sin, and GLSL’ssinall take radians, soMath.sin(90)is about 0.894, not 1. Convert withdeg * Math.PI / 180(ormath.radians) and label both angle columns so readers know which unit a value is in.Expecting floating-point code to return the exact zeros in the table.
Math.sin(Math.PI)returns about1.22e-16becauseMath.PIis not exactly π. Compare against table values with a tolerance such asMath.abs(a - b) < 1e-12instead of===.Writing ∞ or a number for tan 90°.
Tangent is undefined there because cosine is zero, and the limit is +∞ from one side and −∞ from the other. Write “undefined” for 90° and 270° and keep the rows, since readers look up exactly those angles.
Using
|x|for absolute values or norms inside a table cell.The pipe ends the cell even inside
$...$math. Write\lvert x \rvertor\vert x \vertin LaTeX, or escape the character as described in escaping pipes.
Related Markdown Table Templates
Browse all 50 templatesHypothesis Testing & Statistical Analysis
Summarize inferential statistical hypotheses, sample sizes, degrees of freedom, test statistics, p-values, and empirical conclusions.
Scientific Laboratory Observation Log
Record empirical laboratory experiments, sample cohorts, temperature, reaction durations, measured product yields, and observation notes.
Big-O Algorithmic Time & Space Complexity
Comprehensive cheat sheet for common data structures and sorting algorithms, comparing best, average, worst time, and space complexity.
Trigonometric & Mathematical Constants Table: Frequently Asked Questions
Is 1/√3 the same as √3/3?
Yes. Multiplying the numerator and denominator by √3 rationalizes the denominator: 1/√3 = √3/3 ≈ 0.5774. Many textbooks prefer the rationalized form; either is correct, but use the same convention in every row of the table.
How many digits of π should I use in code?
Use the language constant. Math.PI in JavaScript and math.pi in Python are the closest double-precision values to π, accurate to about 15–17 significant digits. A 32-bit float, common in shaders, holds only about 7, so extra typed digits beyond that are discarded.
Does GLSL have a built-in π constant?
No. GLSL defines no PI constant, so shaders usually declare const float PI = 3.14159265; or compute acos(-1.0). Both round to the same 32-bit float, so the extra digits in the literal do no harm but add no precision.
Why are radians the default in mathematics and code?
With angles in radians, the derivative of sin x is exactly cos x and arc length is simply radius times angle, so formulas carry no conversion factor. Degrees remain the friendlier unit for people, which is why this table lists both.