Arithmetic and Algebra
Before turning, milling, or programming a CNC machine, you need to know how to do math. In this chapter, we’ll review the tools used every day in the workshop: fractions (including inch fractions), rounding, powers, percentages, ratios, and—above all—equations, which are used to manipulate formulas and find the missing value. Each topic includes examples taken from real-world work situations.
1.1 The Numbers
Various types of numbers are used in the workshop, and it's helpful to know what they're called because each one has its own rules.
- Natural numbers (symbol ℕ): 0, 1, 2, 3 ... They are used to count: workpieces, tools, and passes.
- Integers (ℤ): the natural numbers plus the negative numbers, ... −2, −1, 0, 1, 2 ... In CNC machining, negative dimensions are standard: Z−30 means 30 mm toward the spindle from the work zero.
- Rational numbers (ℚ): numbers that can be written as a fraction of two integers, such as 3/4 = 0.75 or 1/3 = 0.333... All measurements taken with an instrument are rational numbers.
- Real numbers (ℝ): rational numbers plus irrational numbers, which have an infinite number of decimal digits that never repeat, such as √2 = 1.41421... and π = 3.14159... They come from geometry: the diagonal of a square, the circumference of a circle.
1.2 The Four Arithmetic Operations and the Order of Operations
In an expression with multiple operations, it is not calculated from left to right as one might think: there is a specific order, which is the same for everyone and also the same for a scientific calculator.
- First, evaluate the parentheses, starting with the innermost ones;
- then powers and roots;
- then multiplication and division, from left to right;
- for addition and subtraction, from left to right.
Calculate 18 − 4 · 3 + 12 / (2 + 4).
200000 ÷ ( 3.1416 × 60 ): without parentheses, the calculator divides by 3.1416 and then multiplies by 60, and the result is 3,819,718 instead of 1,061.1.3 The hamlets
A hamlet ab It says that the whole was divided into b equal parts (the denominator) and they take a (the numerator). It is also a division: 3/4 = 3 ÷ 4 = 0.75.
Simplify
A fraction does not change in value if both the numerator and denominator are divided by the same number. To simplify it to its simplest form, divide both by the greatest common divisor (GCD), which is the largest number that divides both of them.
Addition and Subtraction
You can only add fractions with the same denominator. If the denominators are different, you must first reduce them to the least common multiple (LCM) of the denominators, and then add the numerators.
Two pieces, one 3/8 inch thick and one 5/16 inch thick, stacked on top of each other. How thick are they together?
How many 3/8" wide strips can be cut from a 3/4" wide plate, not counting the thickness of the cut?
Fractions of an inch
In the imperial system, the inch (symbol ″ or in) is divided into halves, quarters, eighths, sixteenths, thirty-secondths, and sixty-fourths. Drill bits, wrenches, gas threads, and imported bars are still measured this way. One inch is exactly 25.4 mm.
On the contrary: Which size in inches is closest to 7 mm?
1.4 Decimal Numbers and Rounding
Calculators display eight or ten decimal places, but a workpiece is measured in hundredths or thousandths of a millimeter. The result must therefore be rounded to the required precision.
- Look at the first digit and discard it;
- If it is 0, 1, 2, 3, or 4, the last digit retained remains unchanged (rounding down);
- If it is 5, 6, 7, 8, or 9, the last digit is increased by one (rounded up).
Key Figures
The significant figures of a number are those that convey information: they are counted starting from the first non-zero digit. 0.004560 has four significant figures (4, 5, 6, and the final zero, which indicates that the measurement is in thousandths). Rule of thumb: A result cannot be more precise than the least precise data from which it was derived. If the diameter is measured with a vernier caliper to the nearest tenth, it makes no sense to record the revolutions with three decimal places.
1.5 Powers and Roots
The power an It's the number a multiplied by itself n times: 23 = 2 × 2 × 2 = 8. The square root √a It is the number that, when multiplied by itself, equals a: √144 = 12 because 12 × 12 = 144.
Scientific Notation
Very large or very small numbers are written as a number between 1 and 10 multiplied by a power of 10. This is how calculators display them (using the letter E: 2.1E5 means 2.1 × 105).
| Magnitude | Written out in full | Scientific notation |
|---|---|---|
| Module of elasticity of steel | 210,000 N/mm² | 2,1 · 105 N/mm² |
| Thermal Expansion of Steel | 0.0000115 per °C | 1,15 · 10−5 /°C |
| A micrometer | 0.001 mm | 1 · 10−3 mm |
| RPM at 1,500 for 8 hours | 720 000 | 7,2 · 105 |
A 500-mm-long steel shaft passes from 20 °C to 40 °C. The elongation is ΔL = α · L · ΔT, where α = 1.15 · 10−5 /°C (we will see this in Chapter 31).
1.6 Percentages
"Percent" means "per hundred": 4% of a quantity is 4 parts out of 100, that is, 4/100 = 0.04 of the quantity. In a workshop, percentages are used for scrap, yield, discounts, and variations in time and price.
An item listed at €1,000 has a 15% discount and then another 5% discount. Is that a 20% discount?
A tool with a 20% discount costs €680. What was the list price?
By optimizing the program, the cycle time is reduced from 4 min 30 s to 3 min 36 s.
A motor draws 7.5 kW from the power grid and delivers 6.0 kW to the shaft.
1.7 Ratios and the Rule of Threes
Two quantities are directly proportional when, if one doubles, the other also doubles: their ratio is constant. They are inversely proportional when, if one doubles, the other is halved: their product is constant.
A machine produces 18 workpieces in 45 minutes. How long does it take to produce 50?
A batch takes 16 hours with 3 machines. What about with 4 of the same machines?
A Ø40 workpiece is machined at 1,600 rpm. At the same cutting speed, at what rpm is a Ø64 workpiece machined?
A 20-tooth gear rotates at 1,500 rpm and drives a 60-tooth wheel. At what speed does the wheel rotate?
1.8 Literal Calculation
In the formulas, letters are used instead of numbers: Vc, D, n. You calculate with letters just as you would with numbers, keeping in mind that identical letters can be added together (3x + 2x = 5x) but different letters cannot (3x + 2y remains as is). Three notable products often come in handy:
Area of a disc with R = 40 mm and r = 30 mm: A = π · (R² − r²) = π · (R + r) · (R − r).
1.9 First-Degree Equations
An equation is an equality with an unknown number, the variable (usually x). Solving it means finding the value of x that makes it true. You can think of it like a balanced scale: whatever you put on one pan, you must also put on the other.
There are two rules for solving this, and they stem from the balance:
- You can add or subtract the same number from both sides; in practice, a term moves to the other side of the equals sign while changing its sign;
- You can multiply or divide both sides by the same number (other than zero); in practice, a factor that multiplies one side passes to the other side and divides it, and vice versa.
3x − 7 = 2x + 5
1.10 Inverse Formulas
This is the most important use of equations in the workshop. A formula relates several quantities; if we know all but one of them, the formula becomes an equation, and the missing quantity is the unknown. Rearranging the formula to isolate that quantity is called finding the inverse formula.
What is the maximum diameter achievable at Vc = 150 m/min with the spindle running at 1,200 rpm?
A 90-mm-long pass at 900 rpm must take half a minute. What feed rate is needed? The formula is t = L / (f · n).
An American technical data sheet lists the operating temperature in °F using the formula F = 9/5 · C + 32. What is 68 °F?
1.11 Systems of Two Equations
When there are two unknowns, you need two equations. The simplest method is substitution: you solve for one unknown in one equation and substitute it into the other, which then has only one unknown.
In an 8-hour shift (480 minutes), a machining center must produce a total of 100 workpieces of two types: Type A takes 4 minutes to produce, and Type B takes 6 minutes. How many of each type?
1.12 Quadratic Equations
An equation is quadratic when the unknown appears squared. We put everything in the form ax² + bx + c = 0 and use the quadratic formula. The number under the radical is called the discriminant (Δ): if it is positive, there are two solutions; if it is zero, there is only one; if it is negative, there are no real solutions.
A rectangular plate has an area of 4,800 mm² and one side is 20 mm longer than the other. How long are the sides?
From a sheet of metal measuring 300 × 200 mm, a border of equal width is cut away all around, so that the inner part has half the area. How wide is the border?
1.13 Decimal Exponents and Logarithms
In cutting formulas, exponents with a decimal point appear, such as h0.25 in the specific cutting pressure or T0.25 in the tool life equation. These are calculated using the xy key on the calculator or by using logarithms.
The base-10 logarithm of a number, log x, is the exponent to which 10 must be raised to obtain that number: log 1000 = 3 because 10³ = 1000. Its properties transform powers into multiplications:
Calculate 0.2490.25 (the chip thickness from Example 26.10).
Taylor's law states that Vc · Tn = C, where T is the cutting edge life in minutes (Chapter 24). When n = 0.25, an insert lasts 15 minutes at 200 m/min. How long does it last at 250 m/min?
1.14 The Formulas in This Chapter
| What | Formula or rule |
|---|---|
| Order of Operations | parentheses → powers and roots → × and : → + and − |
| Sum of Fractions | a/b + c/d = (a·d + c·b) / (b·d) |
| Division of Fractions | a/b : c/d = a/b · d/c |
| Inches and Millimeters | mm = inches · 25.4 |
| Powers | am·an = am+n · am/an = am−n · (am)n = am·n · a−n = 1/an |
| Percentage | part = total × p/100; p = part/total × 100 |
| Surcharge and Discount | × (1 + p/100) · × (1 − p/100) |
| Direct Proportionality | y2 = y1 · x2 / x1 |
| Inverse proportionality | y2 = x1 · y1 / x2 |
| Notable Products | (a ± b)² = a² ± 2ab + b² · (a + b)(a − b) = a² − b² |
| High School | x = (−b ± √(b² − 4ac)) / 2a |
| Logarithms | log(a·b) = log a + log b · log(an) = n · log a |
1.15 Exercises
Try to solve them on your own, using a calculator, before looking at the solution.
Solution
(8 − 2)² = 36; 3 · 36 / 12 = 9; 25 − 9 + 7 = 23.
Solution
mcm(6, 4, 3) = 12: 10/12 + 9/12 − 8/12 = 11/12.
Solution
5/8" = 0.625 × 25.4 = 15.875 mm; 1 1/4" = 1.25 × 25.4 = 31.75 mm.
Solution
20 / 25.4 = 0.7874"; · 32 = 25.2 → 25/32" = 19.844 mm.
Solution
3.2 × 4.5 = 14.4; 10−3 + 5 = 10²; 14.4 × 10² = 1440 (in scientific notation, 1.44 × 10³).
Solution
1280 · 1.12 = 1433.60 €; 1433.60 · 0.88 = 1261.57 €. No: the discount is calculated based on a higher price, so it reduces the amount by more.
Solution
640 is 80% of the power absorbed: 640 / 0.8 = 800 W.
Solution
Reverse: 1440 × 18 / 54 = 480 rpm. Reverse: 6 × 120 / 8 = 90 hours.
Solution
3x = 21 → x = 7. F = 60 000 · P / v = 60 000 · 4,5 / 180 = 1500 N.
Solution
x + y = 40 and 7.85x + 2.7y = 237.5. Substituting y = 40 − x: 7.85x + 108 − 2.7x = 237.5 → 5.15x = 129.5 → x = 25.15 dm³ of steel, y = 14.85 dm³ of aluminum.
Solution
Δ = 49 − 40 = 9; x = (7 ± 3) / 2 → x = 5 or x = 2 (this is the parabola shown in Figure 1.9).
Solution
(400 − 2x)(300 − 2x) = 80,000 → 4x² − 1,400x + 40,000 = 0 → x² − 350x + 10,000 = 0; Δ = 122,500 − 40,000 = 82,500, √Δ = 287.23; x = (350 − 287.23) / 2 = 31.39 mm (the other solution, 318.6 mm, is discarded).
Solution
C = 180 · 200.25 = 180 · 2.1147 = 380.65; T = (380.65 / 220)⁴ = 1.73024 = 8.96 min.
