§1Signed numbers and order of operations
Negative numbers carry direction — a coordinate left of datum, a shortfall, a temperature drop. The sign rules and a fixed order of evaluation keep long expressions unambiguous.
| Operation | Rule | Instance |
|---|---|---|
| Add, like signs | Add magnitudes, keep the sign | (−7) + (−5) = −12 |
| Add, unlike signs | Subtract magnitudes, take the sign of the larger | (−7) + 12 = +5 |
| Subtract | Change the sign of the subtrahend, then add | 6 − (−9) = 15 |
| Multiply / divide | Like signs give +, unlike give − | (−8) × (−3) = 24; (−8) ÷ 2 = −4 |
Expressions evaluate in a fixed order — brackets first, then indices (powers and roots), then multiplication and division left to right, then addition and subtraction left to right. So 5 + 3 × 2² = 5 + 12 = 17, not 32; brackets override: (5 + 3) × 2² = 32. When transcribing a formula into a calculator or spreadsheet, brackets are cheaper than a scrapped part — use more than the minimum.
Contents§2Ratio and proportion
A ratio compares two quantities of the same kind; a proportion states that two ratios are equal. Most gearing, scaling and mixing arithmetic is proportion in light disguise.
Quantities are in direct proportion when they rise together (cutting time and length of cut) and in inverse proportion when one rises as the other falls (gear teeth and speed, spindle speed and diameter at constant surface speed).
A 24-tooth pinion at 900 rev/min drives a 60-tooth wheel. Speeds are inverse to tooth counts: n₂ = n₁ × t₁/t₂ = 900 × 24/60 = 360 rev/min.
Compound proportion chains several factors: if a job’s time is proportional to length and inversely proportional to feed, doubling the length and increasing feed by half changes time by 2 ÷ 1.5 = 1.33 — a third longer, no fresh algebra required.
Contents§3Percentage
A percentage is a fraction with denominator 100 — nothing more. Keep clear what the 100 % base is, and the rest is multiplication.
A tolerance of ±0.05 mm on a 25.00 mm dimension is 0.05/25 = ±0.2 %. A batch with 3 rejects in 250 parts has a scrap rate of 3/250 = 1.2 %.
Scrap rising from 1.2 % to 1.8 % is a rise of 0.6 percentage points but a 50 % relative increase. State which is meant; reports have been derailed by less.
§4Common fractions and reciprocals
Workshop fractions survive because inch tooling still arrives in 64ths. The arithmetic never changes: common denominators to add, invert to divide.
| Operation | Rule |
|---|---|
| Add / subtract | a/b ± c/d = (ad ± cb)/bd — or use the lowest common denominator |
| Multiply | a/b × c/d = ac/bd — cancel common factors first |
| Divide | a/b ÷ c/d = a/b × d/c — invert the divisor and multiply |
| Reciprocal | reciprocal of x is 1/x; of a/b is b/a |
Shims of 3/8″, 5/16″ and 7/32″ stack to 12/32 + 10/32 + 7/32 = 29/32″ = 0.906 25″.
Reciprocals turn division into multiplication — useful when one divisor recurs. Dividing repeatedly by 0.039 37 (the old inch-per-millimetre figure) is the same as multiplying by its reciprocal 25.400 1; the modern definition below makes the exact factor 25.4.
Contents§5Decimals and the inch–millimetre bridge
Since 1959 the inch has been defined as exactly 25.4 mm, so every conversion below is exact arithmetic, not measurement.
A decimal fraction terminates only when its denominator contains no prime factors other than 2 and 5 — which is why every 64th of an inch has an exact decimal, and why thirds recur. The table gives all sixty-four steps with their exact millimetre equivalents.
| Fraction | inch | mm | Fraction | inch | mm |
|---|---|---|---|---|---|
| 1/64 | 0.015625 | 0.3969 | 33/64 | 0.515625 | 13.0969 |
| 1/32 | 0.031250 | 0.7937 | 17/32 | 0.531250 | 13.4937 |
| 3/64 | 0.046875 | 1.1906 | 35/64 | 0.546875 | 13.8906 |
| 1/16 | 0.062500 | 1.5875 | 9/16 | 0.562500 | 14.2875 |
| 5/64 | 0.078125 | 1.9844 | 37/64 | 0.578125 | 14.6844 |
| 3/32 | 0.093750 | 2.3812 | 19/32 | 0.593750 | 15.0812 |
| 7/64 | 0.109375 | 2.7781 | 39/64 | 0.609375 | 15.4781 |
| 1/8 | 0.125000 | 3.1750 | 5/8 | 0.625000 | 15.8750 |
| 9/64 | 0.140625 | 3.5719 | 41/64 | 0.640625 | 16.2719 |
| 5/32 | 0.156250 | 3.9688 | 21/32 | 0.656250 | 16.6687 |
| 11/64 | 0.171875 | 4.3656 | 43/64 | 0.671875 | 17.0656 |
| 3/16 | 0.187500 | 4.7625 | 11/16 | 0.687500 | 17.4625 |
| 13/64 | 0.203125 | 5.1594 | 45/64 | 0.703125 | 17.8594 |
| 7/32 | 0.218750 | 5.5562 | 23/32 | 0.718750 | 18.2562 |
| 15/64 | 0.234375 | 5.9531 | 47/64 | 0.734375 | 18.6531 |
| 1/4 | 0.250000 | 6.3500 | 3/4 | 0.750000 | 19.0500 |
| 17/64 | 0.265625 | 6.7469 | 49/64 | 0.765625 | 19.4469 |
| 9/32 | 0.281250 | 7.1437 | 25/32 | 0.781250 | 19.8438 |
| 19/64 | 0.296875 | 7.5406 | 51/64 | 0.796875 | 20.2406 |
| 5/16 | 0.312500 | 7.9375 | 13/16 | 0.812500 | 20.6375 |
| 21/64 | 0.328125 | 8.3344 | 53/64 | 0.828125 | 21.0344 |
| 11/32 | 0.343750 | 8.7312 | 27/32 | 0.843750 | 21.4312 |
| 23/64 | 0.359375 | 9.1281 | 55/64 | 0.859375 | 21.8281 |
| 3/8 | 0.375000 | 9.5250 | 7/8 | 0.875000 | 22.2250 |
| 25/64 | 0.390625 | 9.9219 | 57/64 | 0.890625 | 22.6219 |
| 13/32 | 0.406250 | 10.3187 | 29/32 | 0.906250 | 23.0187 |
| 27/64 | 0.421875 | 10.7156 | 59/64 | 0.921875 | 23.4156 |
| 7/16 | 0.437500 | 11.1125 | 15/16 | 0.937500 | 23.8125 |
| 29/64 | 0.453125 | 11.5094 | 61/64 | 0.953125 | 24.2094 |
| 15/32 | 0.468750 | 11.9062 | 31/32 | 0.968750 | 24.6062 |
| 31/64 | 0.484375 | 12.3031 | 63/64 | 0.984375 | 25.0031 |
| 1/2 | 0.500000 | 12.7000 | 1/1 | 1.000000 | 25.4000 |
| mm = in × 25.4 exactly; every value above is exact arithmetic, not a rounded measurement. | |||||
§6Continued and conjugate fractions
When a machine offers only whole-number gear teeth, the problem becomes: find a fraction with small terms that approximates a given decimal as closely as possible. Continued fractions solve it optimally.
Any number unfolds into a staircase of whole parts and reciprocals. Cutting the staircase early yields the convergents — the best possible fractions for their size of denominator:
To cut a metric pitch on an inch-leadscrew lathe the ratio 25.4 : 1 must appear in the gear train. From the staircase, 25.4 = 127/5 exactly — so a 127-tooth gear paired with a 5 (in practice 50 : 127) gives a perfect conversion. No smaller pair of whole numbers can: 127 is prime.
Unfolding 0.31 gives [0; 3, 4, 2, 2, 1] with convergents 1/3, 4/13, 9/29, 22/71, 31/100. With denominators limited to 16, the best is 4/13 = 0.307 69 (error 0.002 31) — better than the “obvious” 5/16 = 0.3125 (error 0.0025).
Conjugate fractions are pairs a/b and c/d with ad − bc = ±1; each is the closest fraction to the other for its denominator, and their mediant (a+c)/(b+d) lands between them. Successive convergents above are conjugate — the property that guarantees their optimality, and a quick test when hunting change-gear ratios by hand.
Contents§7Powers, roots and powers of ten
Index laws compress big arithmetic; powers-of-ten notation keeps the decimal point honest when the numbers span galaxies or microns.
In powers-of-ten form every value is a number between 1 and 10 times a power of ten. Multiply the leading numbers, add the exponents; divide, subtract them: (6.4 × 10³)(2.5 × 10⁻⁵) = 16 × 10⁻² = 0.16, and (8.4 × 10⁵) ÷ (2.4 × 10⁻²) = 3.5 × 10⁷.
| n | n² | n³ | √n | ∛n | 1/n |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 1.00000 | 1.00000 | 1.000000 |
| 2 | 4 | 8 | 1.41421 | 1.25992 | 0.500000 |
| 3 | 9 | 27 | 1.73205 | 1.44225 | 0.333333 |
| 4 | 16 | 64 | 2.00000 | 1.58740 | 0.250000 |
| 5 | 25 | 125 | 2.23607 | 1.70998 | 0.200000 |
| 6 | 36 | 216 | 2.44949 | 1.81712 | 0.166667 |
| 7 | 49 | 343 | 2.64575 | 1.91293 | 0.142857 |
| 8 | 64 | 512 | 2.82843 | 2.00000 | 0.125000 |
| 9 | 81 | 729 | 3.00000 | 2.08008 | 0.111111 |
| 10 | 100 | 1000 | 3.16228 | 2.15443 | 0.100000 |
| 11 | 121 | 1331 | 3.31662 | 2.22398 | 0.090909 |
| 12 | 144 | 1728 | 3.46410 | 2.28943 | 0.083333 |
| 13 | 169 | 2197 | 3.60555 | 2.35133 | 0.076923 |
| 14 | 196 | 2744 | 3.74166 | 2.41014 | 0.071429 |
| 15 | 225 | 3375 | 3.87298 | 2.46621 | 0.066667 |
| 16 | 256 | 4096 | 4.00000 | 2.51984 | 0.062500 |
| 17 | 289 | 4913 | 4.12311 | 2.57128 | 0.058824 |
| 18 | 324 | 5832 | 4.24264 | 2.62074 | 0.055556 |
| 19 | 361 | 6859 | 4.35890 | 2.66840 | 0.052632 |
| 20 | 400 | 8000 | 4.47214 | 2.71442 | 0.050000 |
| 21 | 441 | 9261 | 4.58258 | 2.75892 | 0.047619 |
| 22 | 484 | 10648 | 4.69042 | 2.80204 | 0.045455 |
| 23 | 529 | 12167 | 4.79583 | 2.84387 | 0.043478 |
| 24 | 576 | 13824 | 4.89898 | 2.88450 | 0.041667 |
| 25 | 625 | 15625 | 5.00000 | 2.92402 | 0.040000 |
| 26 | 676 | 17576 | 5.09902 | 2.96250 | 0.038462 |
| 27 | 729 | 19683 | 5.19615 | 3.00000 | 0.037037 |
| 28 | 784 | 21952 | 5.29150 | 3.03659 | 0.035714 |
| 29 | 841 | 24389 | 5.38516 | 3.07232 | 0.034483 |
| 30 | 900 | 27000 | 5.47723 | 3.10723 | 0.033333 |
| 31 | 961 | 29791 | 5.56776 | 3.14138 | 0.032258 |
| 32 | 1024 | 32768 | 5.65685 | 3.17480 | 0.031250 |
| 33 | 1089 | 35937 | 5.74456 | 3.20753 | 0.030303 |
| 34 | 1156 | 39304 | 5.83095 | 3.23961 | 0.029412 |
| 35 | 1225 | 42875 | 5.91608 | 3.27107 | 0.028571 |
| 36 | 1296 | 46656 | 6.00000 | 3.30193 | 0.027778 |
| 37 | 1369 | 50653 | 6.08276 | 3.33222 | 0.027027 |
| 38 | 1444 | 54872 | 6.16441 | 3.36198 | 0.026316 |
| 39 | 1521 | 59319 | 6.24500 | 3.39121 | 0.025641 |
| 40 | 1600 | 64000 | 6.32456 | 3.41995 | 0.025000 |
| 41 | 1681 | 68921 | 6.40312 | 3.44822 | 0.024390 |
| 42 | 1764 | 74088 | 6.48074 | 3.47603 | 0.023810 |
| 43 | 1849 | 79507 | 6.55744 | 3.50340 | 0.023256 |
| 44 | 1936 | 85184 | 6.63325 | 3.53035 | 0.022727 |
| 45 | 2025 | 91125 | 6.70820 | 3.55689 | 0.022222 |
| 46 | 2116 | 97336 | 6.78233 | 3.58305 | 0.021739 |
| 47 | 2209 | 103823 | 6.85565 | 3.60883 | 0.021277 |
| 48 | 2304 | 110592 | 6.92820 | 3.63424 | 0.020833 |
| 49 | 2401 | 117649 | 7.00000 | 3.65931 | 0.020408 |
| 50 | 2500 | 125000 | 7.07107 | 3.68403 | 0.020000 |
§8Logarithms
A logarithm answers “ten (or e, or two) to what power gives this number?” — turning multiplication into addition and powers into products, which is why they run growth, decay and decibel arithmetic.
Common logs (base 10) suit orders of magnitude: log 250 = 2.398 — a number of magnitude 10². Natural logs (base e) suit anything growing at a rate proportional to itself: ln 250 = 5.521. Base 2 counts doublings: log₂ 10 = 3.32, so a thousand ≈ ten doublings.
How many periods does a quantity growing 5 % per period take to double? Solve 1.05ⁿ = 2: n = ln 2 / ln 1.05 = 14.21 periods. (The banker’s “rule of 72” estimates 72/5 = 14.4 — close, and now you know where it comes from.)
§9Imaginary and complex numbers
Define i so that i² = −1 and every polynomial gains a full set of roots — and, more usefully for engineers, every rotating or oscillating quantity gains a one-line algebra.
A complex number z = a + bi plots as the point (a, b). Its polar form carries the same information as a length and a direction:
Adding complex numbers adds their components, like vectors. Multiplying them multiplies the lengths and adds the angles — multiplication is rotation-and-scale, the fact that makes phasor analysis of vibration and AC circuits work.
(3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = −5 + 10i. Check in polar form: lengths 5 × 2.236 = 11.180 and angles 53.13° + 63.43° = 116.57°; converting back, 11.180∠116.57° = −5 + 10i. Same answer, and the polar route never touched i².
§10Factorials, permutations and combinations
Counting arrangements is the doorway to probability and to the statistics of §Manufacturing Data Analysis. Three formulas cover it.
Permutations count ordered selections; combinations count selections where order is irrelevant. 10! = 3 628 800 — factorials outgrow everything, which is why counting problems turn astronomical so quickly.
From 8 blocks, the number of ordered ways to pull 3 is P(8, 3) = 8 × 7 × 6 = 336; the number of distinct 3-block sets is C(8, 3) = 336/3! = 56.
§11Prime numbers and factors
Primes are the atoms of the whole numbers. Factorising exposes what a number can be evenly divided into — the question behind gear trains, indexing plates and batch splitting.
To factorise, divide out the smallest primes in turn: 3960 = 2 × 1980 = 2² × 990 = 2³ × 495 = 2³ × 3 × 165 = 2³ × 3² × 55 = 2³ × 3² × 5 × 11. Any usable gear pair, index step or even subdivision of 3960 must assemble from those atoms.
Give one gear of a pair a prime tooth count sharing no factor with its mate and every tooth eventually meets every tooth space — a hunting tooth — distributing wear evenly instead of letting the same pairs pound each other. The 127-tooth metric gear of §6 is prime twice over: exact and self-levelling.
| 2 | 3 | 5 | 7 | 11 | 13 | 17 | 19 | 23 | 29 |
| 31 | 37 | 41 | 43 | 47 | 53 | 59 | 61 | 67 | 71 |
| 73 | 79 | 83 | 89 | 97 | 101 | 103 | 107 | 109 | 113 |
| 127 | 131 | 137 | 139 | 149 | 151 | 157 | 163 | 167 | 173 |
| 179 | 181 | 191 | 193 | 197 | 199 | 211 | 223 | 227 | 229 |
| 233 | 239 | 241 | 251 | 257 | 263 | 269 | 271 | 277 | 281 |
| 283 | 293 | 307 | 311 | 313 | 317 | 331 | 337 | 347 | 349 |
| 353 | 359 | 367 | 373 | 379 | 383 | 389 | 397 | 401 | 409 |
| 419 | 421 | 431 | 433 | 439 | 443 | 449 | 457 | 461 | 463 |
| 467 | 479 | 487 | 491 | 499 | 503 | 509 | 521 | 523 | 541 |
| A number n is prime if no prime ≤ √n divides it — test divisors only that far. | |||||||||
§12Constants worth memorising
A dozen numbers appear so often that fetching them from memory is faster than any lookup. Computed here to six figures.
| Constant | Value | Constant | Value |
|---|---|---|---|
| π | 3.141593 | 2π | 6.283185 |
| π/2 | 1.570796 | π/4 | 0.785398 |
| 1/π | 0.318310 | π² | 9.869604 |
| √2 | 1.414214 | √3 | 1.732051 |
| 1/√2 | 0.707107 | 1/√3 | 0.577350 |
| e | 2.718282 | ln 10 | 2.302585 |
| log₁₀e | 0.434294 | 1° in rad | 0.017453 |
| 1 rad in ° | 57.295780 | φ (golden) | 1.618034 |
§13Quick reference
The working core of the page on one card rack.
Proportion
a/b = c/d ⇒ ad = bc
gears: n₂ = n₁ t₁/t₂
Inch–mm
1 in = 25.4 mm exact
25.4 = 127/5
Indices
aᵐaⁿ = aᵐ⁺ⁿ (aᵐ)ⁿ = aᵐⁿ
a¹ᐟⁿ = ⁿ√a
Logarithms
log ab = log a + log b
log_b x = ln x / ln b
Complex
r = √(a² + b²), θ = arctan b/a
multiply: r₁r₂, θ₁ + θ₂
Counting
P(n,k) = n!/(n−k)!
C(n,k) = n!/k!(n−k)!
